Skip to content

Commit eccf7bd

Browse files
AmirrezaASafaeirad
authored andcommitted
feat: add new tailwind lint rules
1 parent 5c8e9fd commit eccf7bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/tailwind.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ async function tailwind(options = {}) {
1717
},
1818
rules: {
1919
'better-tailwindcss/no-duplicate-classes': 'error',
20+
'better-tailwindcss/no-deprecated-classes': 'warn',
2021
'better-tailwindcss/no-conflicting-classes': 'error',
2122
'better-tailwindcss/no-unnecessary-whitespace': 'warn',
2223
'better-tailwindcss/enforce-consistent-class-order': 'warn',
2324
'better-tailwindcss/enforce-consistent-variable-syntax': 'error',
25+
'better-tailwindcss/enforce-shorthand-classes': 'warn',
26+
'better-tailwindcss/enforce-consistent-important-position': 'warn',
2427
},
2528
};
2629
}

0 commit comments

Comments
 (0)