Skip to content

Commit c6b5530

Browse files
committed
refactor: Better stylelint rules for TailwindCSS
1 parent cf217c1 commit c6b5530

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

buildchain/stylelint.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,28 @@ export default {
55
"stylelint-config-standard-scss"
66
],
77
"rules": {
8+
// For TailwindCSS @apply directive
9+
"at-rule-no-deprecated": {
10+
"ignoreAtRules": [
11+
"apply"
12+
],
13+
},
14+
// For TailwindCSS theme() function properties
15+
"declaration-property-value-no-unknown": {
16+
"ignoreProperties": [
17+
"/^theme/"
18+
],
19+
},
20+
// For TailwindCSS theme() function
21+
"function-no-unknown": {
22+
"ignoreFunctions": [
23+
"theme"
24+
]
25+
},
826
"scss/at-rule-no-unknown": [
927
true,
1028
{
29+
// For TailwindCSS custom @ directives
1130
"ignoreAtRules": [
1231
"theme",
1332
"source",

0 commit comments

Comments
 (0)