stylelint-config-smart

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i stylelint-config-smart

Weekly Downloads

3

Version

0.0.2

License

ISC

Unpacked Size

1.85 kB

Total Files

3

Last publish

Collaborators

  • smarts-isoftstone