aboutsummaryrefslogtreecommitdiffstats
path: root/.stylelintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.stylelintrc.json')
-rw-r--r--.stylelintrc.json21
1 files changed, 19 insertions, 2 deletions
diff --git a/.stylelintrc.json b/.stylelintrc.json
index dc24e607..728265e3 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -1,7 +1,24 @@
{
- "extends": ["stylelint-config-standard", "stylelint-config-prettier"],
+ "plugins": ["stylelint-selector-bem-pattern", "stylelint-scss"],
+ "extends": ["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"
+ "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-.*"]
+ }
}
}