-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy path.stylelintrc.json
More file actions
89 lines (89 loc) · 2.81 KB
/
Copy path.stylelintrc.json
File metadata and controls
89 lines (89 loc) · 2.81 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"extends": ["stylelint-prettier/recommended"],
"plugins": [
"stylelint-declaration-strict-value",
"./stylelint/ol-import-at-top.cjs"
],
"rules": {
"scale-unlimited/declaration-strict-value": [
[
"font-family",
"background-color",
"z-index",
"color"
],
{
"disableFix": true,
"ignoreValues": [
"inherit", "transparent", "none"
]
}
],
"declaration-property-value-disallowed-list": [
{ "z-index": ["/--z-index-level-/"] },
{
"severity": "warning",
"message": "Use a semantic or local z-index token, not a --z-index-level-* primitive (#12363)"
}
],
"color-no-hex": true,
"color-named": "never",
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-redundant-longhand-properties": true,
"no-duplicate-selectors": true,
"block-no-empty": true,
"function-url-quotes": "never",
"length-zero-no-unit": true,
"shorthand-property-no-redundant-values":true,
"selector-max-specificity": "1,4,0",
"unit-no-unknown": true,
"property-no-unknown": true,
"declaration-block-no-shorthand-property-overrides": true,
"selector-pseudo-class-no-unknown": [true, {"ignorePseudoClasses": ["selected"]}],
"selector-pseudo-element-no-unknown": true,
"selector-type-no-unknown": [true, {"ignoreTypes": ["/^ol-/"]}],
"media-feature-name-no-unknown": true,
"at-rule-no-unknown": true,
"ol/import-at-top": true,
"comment-no-empty": true,
"no-duplicate-at-import-rules": true,
"no-empty-source": true,
"font-family-no-duplicate-names": true,
"font-family-no-missing-generic-family-keyword": [true, {"ignoreFontFamilies": ["!important"]}],
"no-descending-specificity": true
},
"overrides": [
{
"files": ["static/css/base/common.css"],
"rules": {
"scale-unlimited/declaration-strict-value": [
["font-family", "font-weight", "background-color", "z-index", "color"],
{
"disableFix": true,
"ignoreValues": ["inherit", "transparent", "none"]
}
]
}
},
{
"files": ["openlibrary/**/*.js"],
"customSyntax": "postcss-lit",
"rules": {
"prettier/prettier": null,
"scale-unlimited/declaration-strict-value": [
["z-index"],
{ "disableFix": true, "ignoreValues": ["inherit", "transparent", "none"] }
],
"color-no-hex": null,
"color-named": null,
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"declaration-block-no-duplicate-properties": null,
"declaration-block-no-redundant-longhand-properties": null,
"shorthand-property-no-redundant-values": null,
"length-zero-no-unit": null,
"selector-max-specificity": null
}
}
]
}