-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.json
40 lines (40 loc) · 1.14 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
40
{
"extends": [ "stylelint-config-standard" ],
"plugins": [ "stylelint-use-logical", "stylelint-order" ],
"rules": {
"custom-property-pattern": null,
"no-empty-source": null,
"no-descending-specificity": null,
"declaration-no-important": true,
"max-nesting-depth": [
3,
{
"message": "Please keep the nesting depth 3 or less."
}
],
"selector-class-pattern": [
"^(?:[a-z0-9]+)(?:-[a-z0-9]+)*(?:__(?:[a-z0-9]+)(?:-[a-z0-9]+)*)?(?:--(?:[a-z0-9]+)(?:-[a-z0-9]+)*)?$",
{
"message": "Selector class name violates the BEM Convention.",
"resolveNestedSelectors": true,
"url": "https://getbem.com/naming"
}
],
"selector-id-pattern": [
"^(?:[a-z0-9]+)(?:-[a-z0-9]+)*(?:__(?:[a-z0-9]+)(?:-[a-z0-9]+)*)?(?:--(?:[a-z0-9]+)(?:-[a-z0-9]+)*)?$",
{
"message": "Selector ID name violates the BEM Convention.",
"url": "https://getbem.com/naming"
}
],
"csstools/use-logical": [
"always", {
"except": [
"float",
"inset-block"
]
}
],
"order/properties-alphabetical-order": true
}
}