@finter/stylelint-plugin
v1.0.1
Published
config for StyleLint
Downloads
2
Maintainers
Readme
stylelint-config
快速开始
安装
<npm|yarn|pnpm> add -D stylelint @finter/stylelint-config
使用
创建一个 .stylelintrc.json 文件在项目根目录,然后复制下面的代码到这个文件中(如果要对 less 或 scss 等文件使用,需要配置 customSyntax 字段):
{
"extends": [
"@finter/stylelint-config"
],
# less
"customSyntax": "postcss-less"
# scss
"customSyntax": "postcss-scss"
}
内置依赖
- stylelint rules: stylelint rule list
- order: Specify the order of content within declaration blocks.
- properties-order: Specify the order of properties within declaration blocks.
- properties-alphabetical-order: Specify the alphabetical order of properties within declaration blocks.