-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.json
81 lines (74 loc) · 2.17 KB
/
.stylelintrc.json
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
{
"plugins": [
"stylelint-order",
"stylelint-scss"
],
"extends": [
"stylelint-config-standard",
"stylelint-rscss/config"
],
"rules" : "// https://maximgatilin.github.io/stylelint-config/",
"rules": {
"string-quotes": "single",
"no-duplicate-selectors": true,
"color-named": "never",
"selector-attribute-quotes": "always",
"number-leading-zero": "never",
"function-url-quotes": "always",
"font-weight-notation": "numeric",
"font-family-name-quotes": "always-unless-keyword",
"declaration-empty-line-before": null,
"at-rule-no-unknown": "// https://github.com/kristerkari/stylelint-scss/issues/139#issuecomment-316537288",
"at-rule-no-unknown": [true, {
"ignoreAtRules": ["extend", "at-root", "debug", "warn", "error", "if", "else", "for", "each", "while", "mixin", "include", "content", "return", "function"]
}],
"rule-empty-line-before": ["always", {
"ignore": ["after-comment", "first-nested"]
}],
"at-rule-empty-line-before": null,
"order/order": [
"custom-properties",
{
"type": "at-rule",
"name": "extend"
},
{
"type": "at-rule",
"name": "include",
"hasBlock": false
},
"declarations",
"rules",
{
"type": "at-rule",
"name": "media",
"hasBlock": true
},
{
"type": "at-rule",
"name": "include",
"parameter": "media",
"hasBlock": true
}
],
"selector-max-id": "// disable ids",
"selector-max-id": 0,
"declaration-no-important": true,
"selector-no-qualifying-type": [true, {
"ignore": "// allow rscss variants on elements",
"ignore": ["class"]
}],
"scss/at-mixin-argumentless-call-parentheses": "never",
"shorthand-property-no-redundant-values": true,
"declaration-block-no-duplicate-properties": [true, {
"ignore": ["consecutive-duplicates-with-different-values"]
}],
"rscss/class-format": [
true,
{
"element": "// https://github.com/rstacruz/stylelint-rscss/issues/9#issuecomment-357462211",
"element": "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
}
]
}
}