-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.stylelintrc.json
40 lines (40 loc) · 1.05 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
{
"$schema": "https://json.schemastore.org/stylelintrc",
"extends": "stylelint-config-standard",
"plugins": ["stylelint-use-nesting"],
"ignoreFiles": ["_site/**/*"],
"rules": {
"declaration-property-unit-allowed-list": {
"/^border/": ["px"],
"/^padding|^gap/": ["rem"]
},
"unit-allowed-list": ["%", "deg", "px", "rem", "ms", "vw"],
"number-max-precision": 5,
"csstools/use-nesting": "always",
"selector-max-universal": 0,
"selector-disallowed-list": [
"/^\\./",
{
"message": "Global Class-only selector \"%s\" is not allowed."
}
],
"selector-combinator-allowed-list": [">"],
"selector-nested-pattern": [
"^(?!&\\s*>)(&|>)\\s*",
{
"splitList": true,
"message": "\"%s\" must start with a child combinator (>) or the ampersand (&)"
}
],
"no-descending-specificity": [
true,
{ "ignore": ["selectors-within-list"] }
],
"property-no-vendor-prefix": [
true,
{
"ignoreProperties": ["appearance"]
}
]
}
}