Skip to content

Commit c254b8e

Browse files
committed
chore: update stylelint rules to extend standard CSS rules
1 parent 8c6a356 commit c254b8e

File tree

3 files changed

+305
-6845
lines changed

3 files changed

+305
-6845
lines changed

.stylelintrc.json

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
{
2-
"extends": "stylelint-config-standard-scss",
2+
"extends": [
3+
"stylelint-config-standard",
4+
"stylelint-config-standard-scss"
5+
],
36
"rules": {
4-
"selector-class-pattern": null,
5-
"media-feature-range-notation": "prefix"
7+
"selector-class-pattern": [
8+
"^(?:[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?(?:--[a-z0-9]+(?:-[a-z0-9]+)*)?)?(?:\\[.+\\])?$",
9+
{
10+
"message": "Expected property name to be in BEM format",
11+
"resolveNestedSelectors": true
12+
}
13+
],
14+
"media-feature-range-notation": "prefix",
15+
"max-nesting-depth": [
16+
4,
17+
{
18+
"ignore": [
19+
"blockless-at-rules"
20+
]
21+
}
22+
]
623
}
7-
}
24+
}

0 commit comments

Comments
 (0)