-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.js
More file actions
34 lines (34 loc) · 929 Bytes
/
stylelint.config.js
File metadata and controls
34 lines (34 loc) · 929 Bytes
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
module.exports = {
rules: {
"block-no-empty": null,
"block-opening-brace-space-before": "always",
"color-no-invalid-hex": true,
"declaration-colon-space-after": "always-single-line",
"declaration-empty-line-before": "never",
"declaration-property-value-whitelist": [
{
"/color/": ["/@.+/", "transparent"],
},
],
"max-empty-lines": 2,
"max-nesting-depth": [
2,
{
ignoreAtRules: ["media"],
},
],
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"rule-empty-line-before": [
"always",
{
except: ["first-nested"],
ignore: ["after-comment"],
},
],
"selector-max-id": 0,
"value-list-comma-space-after": "always-single-line",
"value-list-comma-newline-after": "always-multi-line",
"unit-whitelist": ["em", "rem", "%", "s", "vh", "vw", "ms", "turn", "deg"],
},
};