diff options
Diffstat (limited to '.stylelintrc.json')
-rw-r--r-- | .stylelintrc.json | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.stylelintrc.json b/.stylelintrc.json new file mode 100644 index 00000000..7df4249c --- /dev/null +++ b/.stylelintrc.json @@ -0,0 +1,24 @@ +{ + "plugins": ["stylelint-selector-bem-pattern", "stylelint-scss"], + "extends": ["stylelint-config-recommended", "stylelint-config-sass-guidelines", "stylelint-config-prettier"], + "rules": { + "selector-class-pattern": null, + "selector-no-qualifying-type": [ + true, + { + "ignore": ["attribute", "class"] + } + ], + "indentation": 4, + "string-quotes": "single", + "max-nesting-depth": 2, + "plugin/selector-bem-pattern": { + "preset": "bem", + "componentName": "(([a-z0-9]+(?!-$)-?)+)", + "componentSelectors": { + "initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$" + }, + "ignoreSelectors": [".*\\.has-.*", ".*\\.is-.*"] + } + } +} |