aboutsummaryrefslogtreecommitdiffstats
path: root/.stylelintrc.json
blob: fc13954d3410e103d682320c6547867ddf0a1a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  "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"]
      }
    ],
    "string-no-newline": null,
    "indentation": 2,
    "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-.*"]
    }
  }
}