-
Notifications
You must be signed in to change notification settings - Fork 13
/
.stylelintrc
91 lines (91 loc) · 2.2 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
82
83
84
85
86
87
88
89
90
91
{
"$schema": "http://json.schemastore.org/stylelintrc.json",
"extends": "stylelint-config-sass-guidelines",
"defaultSeverity": "error",
"ignoreFiles": [
"dist",
"node_modules"
],
"plugins": [
"stylelint-scss",
"stylelint-declaration-strict-value",
"stylelint-declaration-block-no-ignored-properties",
"stylelint-high-performance-animation"
],
"rules": {
"order/properties-alphabetical-order": null,
"declaration-no-important": [
true,
{
"severity": "warning"
}
],
"function-parentheses-space-inside": null,
"max-nesting-depth": [
5,
{
"ignoreAtRules": [
"each",
"media",
"supports",
"include",
"keyframes"
]
}
],
"no-descending-specificity": null,
"selector-class-pattern": [
"(^(((?!(is|has|hui))[a-z]+){4,20}(\\-[a-z]+){0,2})(\\_\\_[a-z]+(\\-[a-z]+){0,2})?(\\-\\-[a-z]+(\\-[a-z]+){0,2}){0,2}$)|(^(row|container)$)",
{
"resolveNestedSelectors": true,
"message": "Selector should match hyphenated BEM-syntax (http://getbem.com/). State-Classes should be modifiers. (selector-class-pattern)"
}
],
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"selector-type-no-unknown": [
true,
{
"ignore": [
"custom-elements"
]
}
],
"order/order": null,
"scale-unlimited/declaration-strict-value": [
[
"/color/",
"font-size",
"font-weight"
],
{
"ignoreKeywords": {
"/color/": [
"transparent",
"inherit"
],
"font-size": [
"modular-scale(/d)",
"ms(/d)",
"inherit"
],
"font-weight": [
"400",
"500",
"700",
"inherit"
]
},
"disableFix": true
}
],
"plugin/declaration-block-no-ignored-properties": true,
"plugin/no-low-performance-animation-properties": [
true,
{
"severity": "warning"
}
],
"scss/dollar-variable-pattern": null
}
}