-
Notifications
You must be signed in to change notification settings - Fork 10
/
.stylelintrc
59 lines (58 loc) · 1.62 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
{
"plugins": [
"stylelint-order",
"stylelint-scss"
],
"extends": [
"./node_modules/prettier-stylelint/config.js"
],
"rules": {
"string-quotes": "single",
"color-named": ["never", { ignore: ["inside-function"] }],
"color-no-hex": true,
"order/order": [
[
"custom-properties",
"dollar-variables",
{
type: "at-rule",
name: "include",
parameter: "set-*",
message: "Stop being lazy and flatten your classnames"
},
"declarations",
"rules",
{
type: "at-rule",
name: "media",
hasBlock: true
}
]
],
"order/properties-alphabetical-order": true,
"block-no-empty": true,
"color-no-invalid-hex": true,
"declaration-colon-space-after": "always",
"declaration-colon-space-before": "never",
"function-comma-space-after": "always",
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-no-vendor-prefix": true,
"max-empty-lines": 3,
"max-nesting-depth": 3,
"selector-nested-pattern": [ "^(?!&__|&--|&-|&_).*", {
"message": "Stop being lazy and flatten your classnames",
"severity": "warning"
} ],
"number-leading-zero": "never",
"number-no-trailing-zeros": true,
"property-no-vendor-prefix": true,
"selector-list-comma-space-before": "never",
"selector-list-comma-newline-after": "always",
"value-no-vendor-prefix": true,
"indentation": [ 2, {
"message": "Please use 2 spaces for indentation. Tabs make Stuart very grumpy.",
"severity": "warning"
} ]
}
}