forked from DuckFlit/Degrees-Of-Lewdity-RUS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.cjs
50 lines (46 loc) · 1.36 KB
/
stylelint.config.cjs
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
module.exports = {
plugins: ["stylelint-no-unsupported-browser-features"],
extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss", "stylelint-prettier/recommended"],
rules: {
"plugin/no-unsupported-browser-features": [
true,
{
severity: "warning",
// To prevent stylelint from removing -webkit-background-clip
ignore: ["background-clip"],
},
],
// Class and ID patterns disabled for now due to the large amounts of classes and IDs that break this rule
"selector-class-pattern": null,
"selector-id-pattern": null,
/* Because we don't use PostCSS, these errors seem redundant. */
"media-feature-name-no-vendor-prefix": null,
"property-no-vendor-prefix": null,
"value-no-vendor-prefix": null,
/* Stylistic errors that aren't useful. */
"order/properties-order": null,
"comment-empty-line-before": null,
// Modified kebab-case for numbered CSS vars
"custom-property-pattern": [
"^([a-z0-9]*)(-[a-z0-9]+)*$",
{
message: "Expected custom property name to be kebab-case",
},
],
},
overrides: [
{
files: ["modules/css/base.css", "modules/css/clothing-shop-v2.css"],
rules: {
"font-family-no-missing-generic-family-keyword": null,
"no-descending-specificity": null,
},
},
{
files: ["modules/css/base.css"],
rules: {
"selector-type-no-unknown": null,
},
},
],
};