Repository navigation
Expand file tree
/
Copy path.stylelintrc.json
More file actions
70 lines (70 loc) · 2.07 KB
/
Copy path.stylelintrc.json
File metadata and controls
70 lines (70 loc) · 2.07 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
],
"rules": {
"custom-property-pattern": null,
"selector-class-pattern": [
"^(dbench|draft-bench)-[a-z0-9-]+(__[a-z0-9-]+)?(--[a-z0-9-]+)?$|^(markdown|cm|workspace|view|nav|is|mod|modal)-[a-z0-9-]+$",
{
"message": "Expected class selector to use BEM format with dbench-/draft-bench- prefix, or target a known Obsidian class (markdown-, cm-, workspace-, view-, nav-, is-, mod-, modal-) (selector-class-pattern)"
}
],
"declaration-empty-line-before": [
"always",
{
"except": ["after-declaration", "first-nested"],
"ignore": ["after-comment", "inside-single-line-block"]
}
],
"comment-empty-line-before": [
"always",
{
"except": ["first-nested"],
"ignore": ["stylelint-commands"]
}
],
"rule-empty-line-before": [
"always-multi-line",
{
"except": ["first-nested"],
"ignore": ["after-comment"]
}
],
"at-rule-empty-line-before": [
"always",
{
"except": ["blockless-after-same-name-blockless", "first-nested"],
"ignore": ["after-comment"]
}
],
"max-nesting-depth": 3,
"no-descending-specificity": null,
"font-family-no-missing-generic-family-keyword": null,
"property-no-vendor-prefix": null,
"value-no-vendor-prefix": null,
"selector-no-vendor-prefix": null,
"media-feature-name-no-vendor-prefix": null,
"at-rule-no-vendor-prefix": null,
"length-zero-no-unit": true,
"color-hex-length": "short",
"color-hex-case": "lower",
"string-quotes": "double",
"unit-case": "lower",
"value-keyword-case": "lower",
"function-name-case": "lower",
"property-case": "lower",
"selector-pseudo-class-case": "lower",
"selector-pseudo-element-case": "lower",
"selector-type-case": "lower",
"at-rule-name-case": "lower",
"media-feature-name-case": "lower"
},
"ignoreFiles": [
"**/*.min.css",
"**/node_modules/**",
"external/**",
"styles.css"
]
}