0.0.1 • Published 10 months ago

stylelint-config-smarts v0.0.1

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

stylelint-config-smart

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

Installation

You'll first need to install stylelint:

$ pnpm i stylelint --save-dev

Next, install stylelint-config-smart:

$ pnpm install stylelint-config-smart --save-dev

Usage

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

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

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