forked from team23/stylelint-config-team23-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
39 lines (38 loc) · 1017 Bytes
/
index.js
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
38
39
"use strict";
module.exports = {
extends: "stylelint-config-standard",
rules: {
"selector-max-id": 0,
"declaration-no-important": true,
"max-empty-lines": 2,
"no-descending-specificity": null,
"at-rule-no-vendor-prefix": true,
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"string-quotes": "single",
"function-url-quotes": "always",
"font-family-name-quotes": "always-where-recommended",
"selector-attribute-quotes": "always",
"max-nesting-depth": [
3,
{
ignore: ["pseudo-classes"],
},
],
"selector-max-compound-selectors": 3,
"selector-class-pattern": [
"^[a-z0-9\\-_]+$",
{
message:
"Selector should be written in lowercase with hyphens or underscores (selector-class-pattern)",
},
],
"value-keyword-case": [
"lower",
{
ignoreProperties: ["font-family", "/^\\$font-family-.*/"]
}
]
},
};