forked from akella/satellite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc
27 lines (27 loc) · 829 Bytes
/
.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
{
"plugins": [
"stylelint-selector-bem-pattern"
],
"rules": {
"property-case": "lower",
"selector-type-case": "lower",
"no-unknown-animations":true,
"indentation": "tab",
"selector-max-compound-selectors": 3,
"no-duplicate-selectors": true,
"shorthand-property-no-redundant-values": true,
"max-nesting-depth": 2,
"no-descending-specificity": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": ["consecutive-duplicates"]
}
],
"plugin/selector-bem-pattern": {
"componentName": "[a-zA-Z0-9]+$",
"componentSelectors": "^(?:\\.(?:{componentName}|is[-](?:[a-zA-Z0-9-_]*))[ ]?(?:__[a-zA-Z0-9-_]+)?(?:_[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*){0,2}[ ]?)+$"
}
}
}