aboutsummaryrefslogtreecommitdiffstats
path: root/.stylelintrc.json
blob: 5ca6b374090acf44cf11e747b8f2a9c2205d76a8 (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
26
27
28
29
30
{
  "extends": [
    "stylelint-config-standard",
    "stylelint-config-sass-guidelines",
    "stylelint-config-prettier"
  ],
  "rules": {
    "at-rule-empty-line-before": [
      "always",
      {
        "except": ["blockless-after-blockless"],
        "ignore": ["after-comment", "first-nested"],
        "ignoreAtRules": ["else", "if"]
      }
    ],
    "block-closing-brace-newline-after": [
      "always",
      { "ignoreAtRules": ["if", "else"] }
    ],
    "max-nesting-depth": [
      3,
      {
        "ignore": ["blockless-at-rules", "pseudo-classes"],
        "ignoreAtRules": ["media", "supports", "include"]
      }
    ],
    "string-quotes": "double",
    "scss/dollar-variable-pattern": "^([a-z][a-z0-9]*)((-|_)[a-z0-9]+)*$"
  }
}