-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
34 lines (34 loc) · 968 Bytes
/
.stylelintrc.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
module.exports = {
extends: [
// https://prettier.io/docs/en/integrating-with-linters.html#recommended-configuration-2
"stylelint-config-prettier",
],
rules: {
"block-no-empty": null,
"color-no-invalid-hex": true,
"declaration-property-value-allowed-list": {
"/color/": [
"transparent",
"/@accent_aqua/",
"/@accent_pink/",
"/@accent_purple/",
"/@alert_green/",
"/@alert_orange/",
"/@alert_red/",
"/@neutral_black/",
"/@neutral_dark_gray/",
"/@neutral_gray/",
"/@neutral_medium_gray/",
"/@neutral_off_white/",
"/@neutral_silver/",
"/@neutral_white/",
"/@primary_blue/",
],
},
"max-nesting-depth": [1, { ignoreAtRules: ["media"] }],
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"selector-max-id": 0,
"unit-allowed-list": ["em", "ms", "rem", "s", "vh", "%"],
},
};