-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
55 lines (55 loc) · 1.46 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
extends: [
"stylelint-config-standard",
"stylelint-config-sass-guidelines",
"stylelint-a11y/recommended",
"stylelint-config-prettier",
],
plugins: [
"stylelint-csstree-validator",
"stylelint-declaration-block-no-ignored-properties",
"stylelint-declaration-strict-value",
"stylelint-high-performance-animation",
"stylelint-no-unsupported-browser-features",
"stylelint-use-nesting",
],
rules: {
"csstools/use-nesting": "always",
"csstree/validator": {
syntaxExtensions: ["sass"],
},
"max-nesting-depth": 4,
"order/properties-alphabetical-order": null,
"order/order": [
[
"dollar-variables",
"custom-properties",
"at-rules",
"declarations",
"rules",
],
{ severity: "warning" },
],
"plugin/declaration-block-no-ignored-properties": true,
"plugin/no-low-performance-animation-properties": true,
"scale-unlimited/declaration-strict-value": [
"/color$/",
{ disableFix: true },
],
"plugin/no-unsupported-browser-features": [
true,
{
ignore: [
"css-gradients",
"css-appearance",
"css-mixblendmode",
"multicolumn",
],
},
],
"selector-class-pattern": "^([a-z][a-z0-9]+)+([A-Z][a-z0-9]+)*$",
"selector-max-type": 2,
"scale-unlimited/declaration-strict-value": null,
},
ignoreFiles: ["node_modules", "**/*.tsx"],
};