forked from chromeos/chromeos.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.json
85 lines (85 loc) · 2.41 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
82
83
84
85
{
"extends": ["stylelint-config-recommended", "stylelint-config-sass-guidelines", "stylelint-config-prettier"],
"rules": {
"indentation": 2,
"string-quotes": "single",
"no-duplicate-selectors": true,
"color-hex-case": "lower",
"color-hex-length": "long",
"color-named": "never",
"selector-no-qualifying-type": true,
"selector-attribute-quotes": "always",
"declaration-block-trailing-semicolon": "always",
"declaration-no-important": true,
"property-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"number-leading-zero": "always",
"function-no-unknown": [
true,
{
"ignoreFunctions": ["pxRem", "pxEm", "generateScaling", "if", "pxCast", "unquote", "unitless", "math.percentage", "math.div", "nth", "map-get"]
}
],
"property-no-unknown": [
true,
{
"ignoreProperties": ["container-name", "container-type"]
}
],
"function-url-quotes": "always",
"font-weight-notation": "numeric",
"font-family-name-quotes": "always-where-required",
"at-rule-no-vendor-prefix": true,
"selector-pseudo-element-colon-notation": "double",
"selector-no-vendor-prefix": true,
"media-feature-name-no-vendor-prefix": true,
"selector-class-pattern": [
"^[_a-z0-9\\-]+$",
{
"message": "Selector should be written in lowercase with hyphens (selector-class-pattern)"
}
],
"scss/percent-placeholder-pattern": [
"^[_a-z0-9\\-]+$",
{
"message": "Placeholder selector should be written in lowercase with hyphens (selector-class-pattern)"
}
],
"max-nesting-depth": [
3,
{
"ignoreAtRules": ["each", "media", "supports", "include", "for", "container"]
}
],
"scss/at-function-pattern": "^[a-z]+([a-zA-Z0-9-]+[a-zA-Z0-9]+)?$",
"scss/at-mixin-pattern": "^[a-z]+([a-zA-Z0-9-]+[a-zA-Z0-9]+)?$",
"scss/at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["container"]
}
],
"order/order": [
[
"dollar-variables",
"custom-properties",
{
"type": "at-rule",
"name": "extend"
},
{
"type": "at-rule",
"name": "include",
"hasBlock": false
},
"declarations",
{
"type": "at-rule",
"name": "include",
"hasBlock": true
},
"rules"
]
]
}
}