@zatjs/stylelint

0.2.0 • Public • Published

@zatjs/stylelint

基于Taro的小电样式规范标准库

Extends stylelint-config-standard.

Installation

yarn add @zatjs/stylelint --dev

Usage

{
  "extends": "@zatjs/stylelint"
}

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to change the at-rule-no-unknown rule to use its ignoreAtRules option, change the indentation to tabs, turn off the number-leading-zero rule,and add the unit-allowed-list rule:

{
  "extends": "@zatjs/stylelint",
  "rules": {
    "at-rule-no-unknown": [
      true,
      {
        "ignoreAtRules": ["extends", "ignores"]
      }
    ],
    "indentation": "tab",
    "number-leading-zero": null,
    "unit-allowed-list": ["em", "rem", "s"]
  }
}

Package Sidebar

Install

npm i @zatjs/stylelint

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

6.86 kB

Total Files

5

Last publish

Collaborators

  • dian-fed