-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.stylelintrc
More file actions
46 lines (46 loc) · 1.1 KB
/
.stylelintrc
File metadata and controls
46 lines (46 loc) · 1.1 KB
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
40
41
42
43
44
45
46
{
"extends": ["@wordpress/stylelint-config"],
"rules": {
"color-hex-length": "short",
"max-nesting-depth": 4,
"rule-empty-line-before": [
"always",
{
"except": ["first-nested"],
"ignore": ["after-comment", "inside-block"]
}
],
"comment-whitespace-inside": null,
"comment-empty-line-before": null,
"comment-pattern": null,
"selector-class-pattern": ["^[a-z0-9]+([_-]{1,2}[a-z0-9]+)*$", {
"message": "Class selectors should only contain lowercase letters, numbers, single/double hyphens (--), or single/double underscores (__)."
}],
"no-duplicate-selectors": true,
"no-empty-source": null,
"declaration-block-no-duplicate-properties": true,
"block-no-empty": null,
"media-feature-name-no-unknown": [
true,
{
"ignoreMediaFeatureNames": ["/^--/"]
}
],
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["media", "custom-media"]
}
]
},
"ignoreFiles": ["**/vendor/**/*.css"],
"overrides": [
{
"files": ["**/*.scss"],
"rules": {
"scss/dollar-variable-pattern": "^[_a-z0-9-]+$",
"scss/at-extend-no-missing-placeholder": true
}
}
]
}