-
Notifications
You must be signed in to change notification settings - Fork 2
/
stylelint.config.js
178 lines (178 loc) · 7.25 KB
/
stylelint.config.js
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/* eslint-disable */
module.exports = {
"rules": {
"at-rule-blacklist": null,
"at-rule-empty-line-before": ["always", {
"except": ["blockless-group", "first-nested"],
"ignore": ["after-comment"]
}],
"at-rule-name-case": "lower",
"at-rule-name-newline-after": "always-multi-line",
"at-rule-name-space-after": "always",
"at-rule-no-unknown": [true, {
"ignoreAtRules": ["define-mixin", "each", "for", "mixin"]
}],
"at-rule-no-vendor-prefix": true,
"at-rule-semicolon-newline-after": "always",
"at-rule-whitelist": null,
"block-closing-brace-empty-line-before": "never",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always-multi-line",
"block-closing-brace-space-after": null,
"block-closing-brace-space-before": "always-single-line",
"block-no-empty": true,
"block-no-single-line": null,
"block-opening-brace-newline-after": "always-multi-line",
"block-opening-brace-newline-before": null,
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"color-hex-case": "lower",
"color-hex-length": "short",
"color-named": "never",
"color-no-hex": null,
"color-no-invalid-hex": true,
"comment-empty-line-before": null,
"comment-no-empty": true,
"comment-whitespace-inside": null,
"custom-media-pattern": null,
"custom-property-empty-line-before": "never",
"custom-property-no-outside-root": null,
"custom-property-pattern": null,
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-properties-order": "alphabetical",
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-newline-before": "never-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": null,
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"declaration-empty-line-before": "never",
"declaration-no-important": null,
"declaration-property-unit-blacklist": null,
"declaration-property-unit-whitelist": null,
"declaration-property-value-blacklist": null,
"declaration-property-value-whitelist": null,
"font-family-name-quotes": "always-unless-keyword",
"font-weight-notation": "numeric",
"function-blacklist": null,
"function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "never-multi-line",
"function-comma-newline-before": "never-multi-line",
"function-comma-space-after": "always",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true,
"function-parentheses-newline-inside": "never-multi-line",
"function-parentheses-space-inside": "never",
"function-url-no-scheme-relative": true,
"function-url-quotes": "always",
"function-whitelist": null,
"function-whitespace-after": "always",
"indentation": 2,
"keyframe-declaration-no-important": true,
"length-zero-no-unit": true,
"max-empty-lines": 1,
"max-line-length": null,
"max-nesting-depth": [ 4, {
"ignore": ["at-rules-without-declaration-blocks"]
}],
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-case": "lower",
"media-feature-name-no-vendor-prefix": true,
"media-feature-no-missing-punctuation": true,
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-newline-before": "never-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-browser-hacks": null,
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"no-missing-end-of-source-newline": true,
"no-unknown-animations": true,
"no-unsupported-browser-features": [null, {
"browsers": "> 1%, last 2 versions, ie >= 10"
}],
"number-leading-zero": "always",
"number-max-precision": 3,
"number-no-trailing-zeros": true,
"property-blacklist": null,
"property-no-unknown": [true, {
"ignoreProperties": [
"-webkit-overflow-scroll"
]
}],
"property-no-vendor-prefix": true,
"property-whitelist": null,
"rule-nested-empty-line-before": ["always-multi-line", {
"except": ["first-nested"],
"ignore": ["after-comment"]
}],
"root-no-standard-properties": null,
"rule-non-nested-empty-line-before": ["always-multi-line", {
"ignore": ["after-comment"]
}],
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-blacklist": null,
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-attribute-operator-whitelist": null,
"selector-attribute-quotes": "always",
"selector-class-pattern": null,
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-id-pattern": "always",
"selector-list-comma-newline-after": "always-multi-line",
"selector-list-comma-newline-before": "never-multi-line",
"selector-list-comma-space-after": "always-single-line",
"selector-list-comma-space-before": "never",
"selector-max-compound-selectors": 3,
"selector-max-empty-lines": 0,
"selector-max-specificity": "0,4,1",
// https://regex101.com/r/8aHvye/5/tests
// NOTE: The backslashes must be doubled
"selector-nested-pattern": ["^(&(?=[\\s:.,\\[])|&$|[^&]|\\n)*$", {
"message": "Don't use & for concatenation"
}],
"selector-no-attribute": null,
"selector-no-combinator": null,
"selector-no-id": true,
"selector-no-type": null,
"selector-no-universal": null,
"selector-no-vendor-prefix": true,
"selector-pseudo-class-blacklist": null,
"selector-pseudo-class-no-unknown": [true, {
"ignorePseudoClasses": ["container"],
}],
"selector-pseudo-class-whitelist": null,
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": [true, {
"ignorePseudoElements": ["ms-expand"]
}],
"selector-root-no-composition": true,
"selector-type-case": "lower",
"selector-type-no-unknown": null,
"string-no-newline": true,
"string-quotes": "double",
"time-no-imperceptible": true,
"unit-blacklist": null,
"unit-whitelist": null,
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-newline-before": "never-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
"value-no-vendor-prefix": true
}
}
/* eslint-enable */