Skip to content

Commit 37c0c36

Browse files
committed
refactor: Fix stylelint config
1 parent 7cde18a commit 37c0c36

File tree

1 file changed

+33
-18
lines changed

1 file changed

+33
-18
lines changed

buildchain/stylelint.config.js

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,33 @@ export default {
66
],
77
"rules": {
88
// For TailwindCSS @apply directive
9-
"at-rule-no-deprecated": {
10-
"ignoreAtRules": [
11-
"apply"
12-
],
13-
},
9+
"at-rule-no-deprecated": [
10+
true,
11+
{
12+
"ignoreAtRules": [
13+
"apply"
14+
],
15+
}
16+
],
1417
// For TailwindCSS theme() function properties
15-
"declaration-property-value-no-unknown": {
16-
"ignoreProperties": [
17-
"/^theme/"
18-
],
19-
},
18+
"declaration-property-value-no-unknown": [
19+
true,
20+
{
21+
"ignoreProperties": {
22+
"/.+/": "/^.*?theme/"
23+
}
24+
},
25+
],
2026
// For TailwindCSS theme() function
21-
"function-no-unknown": {
22-
"ignoreFunctions": [
23-
"theme"
24-
]
25-
},
27+
"function-no-unknown": [
28+
true,
29+
{
30+
"ignoreFunctions": [
31+
"screen",
32+
"theme"
33+
]
34+
},
35+
],
2636
"scss/at-rule-no-unknown": [
2737
true,
2838
{
@@ -33,18 +43,23 @@ export default {
3343
"utility",
3444
"variant",
3545
"custom-variant",
46+
"plugin",
47+
"tailwind",
3648
"apply",
37-
"reference",
49+
"layer",
3850
"config",
39-
"plugin",
51+
"variants",
52+
"responsive",
53+
"screen"
4054
]
4155
}
4256
],
57+
"no-descending-specificity": null,
4358
"no-invalid-position-at-import-rule": null,
59+
"import-notation": null,
4460
"block-no-empty": null,
4561
"selector-id-pattern": null,
4662
"selector-class-pattern": null,
47-
"no-descending-specificity": null,
4863
"font-family-no-missing-generic-family-keyword": null
4964
}
5065
}

0 commit comments

Comments
 (0)