-
Notifications
You must be signed in to change notification settings - Fork 20
/
.stylelintrc.json
39 lines (39 loc) · 1.26 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"],
"plugins": ["stylelint-order"],
"customSyntax": "postcss-lit",
"rules": {
"order/properties-alphabetical-order": true,
"no-duplicate-selectors": true,
"color-hex-length": "short",
"selector-attribute-quotes": "always",
"value-no-vendor-prefix": true,
"font-weight-notation": "named-where-possible",
"font-family-name-quotes": "always-unless-keyword",
"comment-whitespace-inside": "always",
"comment-empty-line-before": null,
"rule-empty-line-before": [
"always-multi-line",
{
"except": ["first-nested"]
}
],
"selector-pseudo-element-colon-notation": "double",
"media-feature-name-no-vendor-prefix": true,
"no-descending-specificity": null,
"declaration-block-no-redundant-longhand-properties": null,
"property-no-vendor-prefix": null,
"selector-class-pattern": [
"^([a-z][a-z0-9]*)((-{1,2}|_{1,2})[a-z0-9]+)*$",
{
"message": "Expected class selector to be either kebab-case, kebab--case or snake__case"
}
],
"selector-id-pattern": [
"^([a-z][a-z0-9]*)((-{1,2}|_{1,2})[a-z0-9]+)*$",
{
"message": "Expected id selector to be either kebab-case, kebab--case or snake__case"
}
]
}
}