0.0.6 • Published 10 months ago

stylelint-config-siss v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

stylelint-config-siss

Do not download,仅供个人及所在团队项目

Installation

You'll first need to install stylelint:

$ npm i stylelint --save-dev

Next, install stylelint-config-siss:

$ npm install stylelint-config-siss --save-dev

Usage

Add stylelint-config-siss to the extends section of your .stylelintrc.js configuration file.

{
    // ...
    "extends": [
        "stylelint-config-siss"
    ],
    // ...
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        // "xxx": process.env.NODE_ENV === "production" ? true : false
    }
}

Supported Rules

  • 通过按顺序分组对相关属性声明进行排序:
  • Positioning
  • Box Model
  • Typography
  • Visual
  • Animation
  • Misc
  • 通用 css-modules
  • 通用 standard
  • 华为云通用 css