mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-11 10:05:07 +08:00
6936599aef
* rename .stylelintrc to .stylelintrc.json for explicit file type * add new npm script lint-fix:style * fix pseudo-element with double colon * function name should be lower except ignored functions * support stylelint declaration-block-no-ignored-properties rule * support sorted CSS properties order for readability and consistency * autofix order of all styles by lint-fix:style script * remove double slash comments after selector * replace .stylelintignore with ignoreFiles in .stylelintrc.json
18 lines
626 B
JSON
18 lines
626 B
JSON
{
|
|
"extends": [
|
|
"stylelint-config-standard",
|
|
"stylelint-config-rational-order",
|
|
"stylelint-config-prettier"
|
|
],
|
|
"plugins": ["stylelint-order", "stylelint-declaration-block-no-ignored-properties"],
|
|
"rules": {
|
|
"comment-empty-line-before": null,
|
|
"declaration-empty-line-before": null,
|
|
"function-name-case": ["lower", { "ignoreFunctions": ["/colorPalette/"] }],
|
|
"no-invalid-double-slash-comments": null,
|
|
"no-descending-specificity": null,
|
|
"plugin/declaration-block-no-ignored-properties": true
|
|
},
|
|
"ignoreFiles": ["components/style/color/{bezierEasing,colorPalette,tinyColor}.less"]
|
|
}
|