forked from dutscher/stencil-storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc
52 lines (52 loc) · 1.72 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
{
"extends": "stylelint-config-sass-guidelines",
"defaultSeverity": "error",
"plugins": [
"stylelint-scss",
"stylelint-order",
"stylelint-declaration-strict-value",
"stylelint-declaration-block-no-ignored-properties",
"stylelint-high-performance-animation"
],
"rules": {
"declaration-no-important": [true, { "severity": "warning" }],
"function-parentheses-space-inside": null,
"max-nesting-depth": [
5,
{
"ignoreAtRules": ["each", "media", "supports", "include"]
}
],
"no-descending-specificity": null,
"selector-class-pattern": [
"(^(((?!(is|has|my))[a-z]+){4,20}(\\-[a-z]+){0,2})(\\_\\_[a-z]+(\\-[a-z]+){0,2})?(\\-\\-[a-z]+(\\-[a-z]+){0,2}){0,2}$)|(^(row|container)$)",
{
"resolveNestedSelectors": true,
"message": "Selector should match hyphenated BEM-syntax (http://getbem.com/). State-Classes should be modifiers. (selector-class-pattern)"
}
],
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"selector-type-no-unknown": [
true,
{
"ignore": ["custom-elements"]
}
],
"order/properties-alphabetical-order": null,
"order/order": null,
"scale-unlimited/declaration-strict-value": [
["/color/", "font-size", "font-weight"],
{
"ignoreKeywords": {
"/color/": ["transparent", "inherit"],
"font-size": ["modular-scale(/d)", "ms(/d)", "inherit"],
"font-weight": ["inherit"]
},
"disableFix": true
}
],
"plugin/declaration-block-no-ignored-properties": true,
"plugin/no-low-performance-animation-properties": [true, { "severity": "warning" }]
}
}