aboutsummaryrefslogtreecommitdiffstats
path: root/.stylelintrc.json
blob: 83175ed0683a42ff71adea9b0a0a2860f1a8ecd6 (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": 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-.*"]
        }
    }
}