-
Notifications
You must be signed in to change notification settings - Fork 4
/
.stylelintrc.json
34 lines (34 loc) · 1.16 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
{
"extends": [
"stylelint-config-standard-scss"
],
"rules": {
"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/"]
}
],
"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"
}
]
}
}