-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.stylelintrc.json
39 lines (39 loc) · 1.29 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
{
"extends": [
"stylelint-config-standard-scss"
],
"plugins": [
"stylelint-order"
],
"rules": {
"order/properties-alphabetical-order": true,
"font-family-name-quotes": "always-unless-keyword",
"string-no-newline": null,
"color-function-notation": "legacy",
"declaration-no-important": [true, {
"severity": "warning"
}
],
"function-name-case": [
"lower", {
"ignoreFunctions": ["/siteColor/", "/themeColor/", "/fontSize/", "/fontFamily/", "/fontWeight/"]
}
],
"media-feature-name-no-unknown": null,
"scss/at-mixin-pattern": null,
"scss/at-function-pattern": null,
"scss/dollar-variable-pattern": null,
"value-keyword-case": [
"lower", {
"camelCaseSvgKeywords": true,
"ignoreKeywords": ["SpillerContrast", "SpillerContrastItalic", "SpillerWidth", "SpillerWidthItalic", "SpillerRounded", "SpillerSerif", "SpillerSerifItalic"]
}
],
"selector-class-pattern": [
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*((__([a-z][a-z0-9]*)(-[a-z0-9]+)*)?(--([a-z][a-z0-9]*)(-[a-z0-9]+)*)?)$",
{
"message": "Expected class selector to be lowercase, hyphen-delimited words and/or in BEM format: block-name__elem-name--mod-name"
}
]
}
}