-
Notifications
You must be signed in to change notification settings - Fork 2
/
.stylelintrc
59 lines (59 loc) · 1.8 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
{
"plugins": [
"stylelint-value-no-unknown-custom-properties",
"stylelint-at-rule-no-children",
"stylelint-declaration-block-no-ignored-properties",
"stylelint-media-use-custom-media",
],
"ignoreFiles": ["./src/styles/reboot.css"],
"defaultSeverity": "error",
"rules": {
"aditayvm/at-rule-no-children": true,
"plugin/declaration-block-no-ignored-properties": true,
"csstools/media-use-custom-media": [
"known",
{
"importFrom": ["src/styles/variables.css"]
}
],
"csstools/value-no-unknown-custom-properties": [
true,
{
"importFrom": ["src/styles/variables.css"]
}
],
"block-no-empty": true,
"color-named": "always-where-possible",
"color-no-invalid-hex": true,
"comment-no-empty": true,
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-no-important": true,
"declaration-property-value-blacklist": {
"/^margin/": ["initial"],
"/^padding/": ["initial"],
"flex-grow": ["initial"],
},
"function-calc-no-unspaced-operator": true,
"function-linear-gradient-no-nonstandard-direction": true,
"max-nesting-depth": 3,
"no-duplicate-selectors": true,
"no-invalid-double-slash-comments": true,
"property-blacklist": ["flex", "order"],
"property-no-unknown": true,
"selector-max-compound-selectors": 2,
"selector-max-id": 0,
"selector-max-type": 0,
"selector-max-universal": 0,
"selector-pseudo-element-no-unknown": true,
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["global", "local"]
}
],
"shorthand-property-no-redundant-values": true,
"string-no-newline": true,
"unit-blacklist": ["em", "rem"],
},
}