stylelint-config-smarts

0.0.2 • Public • Published

stylelint-config-smarts

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

Installation

You'll first need to install stylelint:

$ pnpm i stylelint --save-dev

Next, install stylelint-config-smarts:

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

Usage

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

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

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-smarts

Weekly Downloads

4

Version

0.0.2

License

ISC

Unpacked Size

2.04 kB

Total Files

2

Last publish

Collaborators

  • smarts-isoftstone