-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc
81 lines (81 loc) · 2.13 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
],
"plugins": [
"stylelint-prettier",
"stylelint-selector-bem-pattern"
],
"rules": {
"prettier/prettier": true,
"shorthand-property-no-redundant-values": true,
"value-no-vendor-prefix": true,
"at-rule-empty-line-before": [
"always",
{
"except": ["blockless-after-same-name-blockless"],
"ignore": ["after-comment", "first-nested"],
"severity": "error"
}
],
"custom-property-empty-line-before": [
"always",
{
"except": ["after-custom-property"],
"ignore": ["after-comment", "first-nested", "inside-single-line-block"],
"severity": "error"
}
],
"declaration-empty-line-before": [
"always",
{
"except": ["after-declaration"],
"ignore": ["after-comment", "first-nested", "inside-single-line-block"],
"severity": "error"
}
],
"rule-empty-line-before": [
"always",
{
"ignore": ["after-comment", "first-nested"],
"severity": "error"
}
],
"declaration-property-unit-whitelist": {
"width": ["px", "vw", "%"],
"min-width": ["px", "vw", "%"],
"max-width": ["px","vw", "%"],
"height": ["vh", "%", "px"],
"min-height": ["px", "vh", "%"],
"max-height": ["px", "vh", "%"],
"/^animation/": ["s"],
"/^transition/": ["s"],
"/^transform/": ["deg", "%"],
"/^margin/": ["px"],
"/^padding/": ["px"],
"left": ["px", "%"],
"right": ["px", "%"],
"top": ["px", "%"],
"bottom": ["px", "%"],
"font-size": ["rem"],
"line-height": ["rem"]
},
"color-no-hex": true,
"number-leading-zero": "always",
"no-descending-specificity": null,
"color-named": ["never", {
ignore: ["inside-function"]
}],
"at-rule-no-unknown": [true, {
ignoreAtRules: ['include', 'mixin', 'if', 'function', 'else', 'return', 'content', 'for']
}],
"plugin/selector-bem-pattern": {
"preset": "bem",
ignoreSelectors: [
"\\.is-.+$",
"\\.has-.+$"
]
}
}
}