fix: disable some tailwindcss eslint rules that cost too much time

This commit is contained in:
NFish 2025-02-11 17:34:47 +08:00
parent 52f3236740
commit cd3d1a8d33
1 changed files with 10 additions and 1 deletions

View File

@ -189,7 +189,16 @@ export default combine(
},
},
rules: {
'tailwindcss/no-custom-classname': 'error',
// due to 1k lines of tailwind config, these rule have performance issue
'tailwindcss/no-contradicting-classname': 'off',
'tailwindcss/enforces-shorthand': 'off',
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/no-unnecessary-arbitrary-value': 'off',
'tailwindcss/classnames-order': 'warn',
'tailwindcss/enforces-negative-arbitrary-values': 'warn',
'tailwindcss/no-arbitrary-value': 'warn',
'tailwindcss/migration-from-tailwind-2': 'warn',
},
},
)