-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc
47 lines (47 loc) · 1.31 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
{
"extends": ["stylelint-config-standard", "stylelint-config-recess-order"],
"rules": {
"at-rule-empty-line-before": null,
"at-rule-no-unknown": null,
"selector-class-pattern": null,
"import-notation": null,
"selector-not-notation": "simple",
"declaration-block-no-redundant-longhand-properties": [
true,
{
"ignoreShorthands": ["inset"]
}
]
},
"overrides": [
{
"files": ["*.scss", "**/*.scss"],
"customSyntax": "postcss-scss",
"extends": ["stylelint-config-recommended-scss"],
"rules": {
"declaration-property-value-allowed-list": {
"/color/": ["/var/", "/\\$/", "currentcolor", "transparent", "unset", "inherit"],
"font-size": ["/var/", "/\\$/", "/[0-9]+em$/", "unset", "inherit"],
"border-radius": ["/var/", "/\\$/", "50%", "0", "inherit"]
},
"declaration-property-value-disallowed-list": {
"transition": ["/all/", "/[0-9]ms/"]
},
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["global"]
}
]
}
},
{
"files": ["*.html", "**/*.html"],
"customSyntax": "postcss-html"
},
{
"files": ["*.md", "**/*.md"],
"customSyntax": "postcss-markdown"
}
]
}