1 | {
|
2 | "plugins": ["stylelint-selector-bem-pattern"],
|
3 | "extends": ["stylelint-config-sass-guidelines", "stylelint-config-prettier"],
|
4 | "customSyntax": "postcss-scss",
|
5 | "rules": {
|
6 | "selector-class-pattern": null,
|
7 | "selector-no-qualifying-type": [
|
8 | true,
|
9 | {
|
10 | "ignore": ["attribute", "class"]
|
11 | }
|
12 | ],
|
13 | "max-nesting-depth": 4,
|
14 | "plugin/selector-bem-pattern": {
|
15 | "preset": "bem",
|
16 | "componentName": "(([a-z0-9]+(?!-$)-?)+)",
|
17 | "componentSelectors": {
|
18 | "initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$"
|
19 | },
|
20 | "ignoreSelectors": [".*\\.has-.*", ".*\\.is-.*"]
|
21 | }
|
22 | }
|
23 | }
|