-
Notifications
You must be signed in to change notification settings - Fork 1
/
.stylelintrc.js
59 lines (58 loc) · 1.59 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
56
57
58
59
module.exports = {
"extends": "stylelint-config-recommended-scss",
"plugins": [
"stylelint-scss",
"stylelint-order",
],
"rules": { // https://stylelint.io/user-guide/rules/
"at-rule-empty-line-before": ["always", {
"except": ["after-same-name", "first-nested"],
"ignoreAtRules": ["include", "extend"]
}],
"at-rule-semicolon-space-before": "never",
"block-closing-brace-empty-line-before": "never",
"color-named": "never",
"custom-property-empty-line-before": ["always", {
"except": [
"after-custom-property",
"first-nested"
]
}],
"declaration-empty-line-before": ["always", {
"except": [
"after-declaration",
"first-nested"
]
}],
"font-weight-notation": "numeric",
"indentation": 2,
"max-empty-lines": 3,
"max-nesting-depth": [3, {
"ignore": ["pseudo-classes"]
}],
"no-descending-specificity": null,
"no-empty-source": true,
"no-empty-first-line": true,
"no-missing-end-of-source-newline": true,
"property-case": "lower",
"rule-empty-line-before": ["always-multi-line", {
"except": ["after-single-line-comment", "first-nested"]
}],
"selector-pseudo-class-no-unknown": [true, {
"ignorePseudoClasses": ["global", "local"],
}],
"string-quotes": "single",
"unit-case": "lower",
// order plugin
"order/order": [
"custom-properties",
"dollar-variables",
"at-variables",
"less-mixins",
"at-rules",
"declarations",
"rules",
],
"order/properties-alphabetical-order": true,
}
};