From cbd1596af4673a954051e0bfffdde7558dd24293 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Thu, 16 Dec 2021 22:56:31 +1100 Subject: [PATCH] chore: stylelint config changes --- .stylelintrc.json | 10 ++++------ plyr.code-workspace | 2 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index fc13954d..ff4f14af 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,6 +1,7 @@ { - "plugins": ["stylelint-selector-bem-pattern", "stylelint-scss"], - "extends": ["stylelint-config-recommended", "stylelint-config-sass-guidelines", "stylelint-config-prettier"], + "plugins": ["stylelint-selector-bem-pattern"], + "extends": ["stylelint-config-sass-guidelines", "stylelint-config-prettier"], + "customSyntax": "postcss-scss", "rules": { "selector-class-pattern": null, "selector-no-qualifying-type": [ @@ -9,10 +10,7 @@ "ignore": ["attribute", "class"] } ], - "string-no-newline": null, - "indentation": 2, - "string-quotes": "single", - "max-nesting-depth": 2, + "max-nesting-depth": 4, "plugin/selector-bem-pattern": { "preset": "bem", "componentName": "(([a-z0-9]+(?!-$)-?)+)", diff --git a/plyr.code-workspace b/plyr.code-workspace index 733a305d..bcd64eaa 100644 --- a/plyr.code-workspace +++ b/plyr.code-workspace @@ -12,7 +12,9 @@ // Linting "stylelint.enable": true, + "stylelint.validate": ["css", "scss"], "css.validate": false, + "less.validate": false, "scss.validate": false, "javascript.validate.enable": false,