-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc
53 lines (53 loc) · 1.26 KB
/
.stylelintrc
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
48
49
50
51
52
53
{
"extends": [
"stylelint-config-prettier",
"stylelint-config-clean-order",
"stylelint-config-recommended",
"stylelint-config-styled-components"
],
"plugins": [
"stylelint-order",
"stylelint-use-nesting",
"stylelint-group-selectors",
"stylelint-z-index-value-constraint"
],
"customSyntax": "@stylelint/postcss-css-in-js",
"rules": {
"color-hex-case": "lower",
"color-no-invalid-hex": true,
"at-rule-empty-line-before": "always",
"csstools/use-nesting": "always",
"plugin/stylelint-group-selectors": true,
"shorthand-property-no-redundant-values": true,
"plugin/z-index-value-constraint": { "min": 1, "max": 80 },
"unit-allowed-list": ["em", "rem", "%", "px", "s", "deg", "vh", "ms"],
"block-no-empty": [
true,
{
"ignore": ["comments"]
}
],
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["extends"]
}
],
"rule-empty-line-before": [
"always",
{
"except": "first-nested"
}
],
"order/order": [
[
"declarations",
"rules",
"at-rules",
{ "type": "at-rule", "name": "keyframes" },
{ "type": "at-rule", "name": "media" }
],
{ "severity": "error" }
]
}
}