forked from erda-project/erda-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.json
47 lines (47 loc) · 1.58 KB
/
.stylelintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"extends": ["stylelint-config-rational-order"],
"plugins": ["stylelint-scss"],
"ignoreFiles": [
"**/*.js",
"**/*.jsx",
"**/*.ts",
"**/*.tsx"
],
"rules": {
"indentation": 2,
"no-empty-source": true,
"block-closing-brace-newline-before": "always",
"block-opening-brace-newline-after": "always",
"block-opening-brace-space-before": "always",
"declaration-colon-space-before": "never",
"declaration-colon-space-after": "always",
"declaration-block-trailing-semicolon": "always",
"selector-list-comma-newline-after": "always",
"selector-attribute-quotes": "always",
"selector-max-compound-selectors": 5,
"declaration-block-no-duplicate-properties": true,
"property-no-unknown": true,
"length-zero-no-unit":true,
"selector-type-case":"lower",
"selector-class-pattern":"^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
"color-hex-length":"long",
"color-hex-case":"lower",
"number-leading-zero":"never",
"font-family-name-quotes":"always-where-recommended",
"string-quotes":"double",
"function-url-quotes":"never",
"function-comma-space-after":"always",
"function-calc-no-unspaced-operator":true,
"scss/at-mixin-argumentless-call-parentheses":"always",
"scss/at-mixin-parentheses-space-before":"never",
"scss/at-function-parentheses-space-before":"never",
"scss/dollar-variable-pattern": "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
"scss/operator-no-unspaced": true,
"rule-empty-line-before": [
"always",
{
"except": ["first-nested", "after-single-line-comment"]
}
]
}
}