summaryrefslogtreecommitdiff
path: root/.stylelintrc
blob: 13ec6ea340b34b2a65309fd166b665e3883358ae (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
31
32
33
34
35
36
37
{
   "extends": ["@gitlab/stylelint-config"],
   "ignoreFiles": [
     "app/assets/stylesheets/pages/emojis.scss",
     "app/assets/stylesheets/startup/startup-*.scss",
     "app/assets/stylesheets/lazy_bundles/select2.scss",
     "app/assets/stylesheets/highlight/themes/*.scss",
     "app/assets/stylesheets/lazy_bundles/cropper.css"
   ],
   "plugins":[
      "./scripts/frontend/stylelint/stylelint-duplicate-selectors.js",
      "./scripts/frontend/stylelint/stylelint-utility-classes.js",
   ],
   "rules":{
      "max-nesting-depth": [
         3,
         {
            "ignoreAtRules":[
               "each",
               "media",
               "supports",
               "include"
            ],
            "severity":"warning"
         }
      ],
      "selector-max-compound-selectors":[3, { "severity": "warning" }],
      "stylelint-gitlab/utility-classes":[true,{ "severity": "warning" }],
      "declaration-block-no-duplicate-properties": [
        true,
        {
          "ignore": ["consecutive-duplicates"]
        }
      ],
      "no-eol-whitespace": true,
   }
}