fix: upgrade @antfu/eslint-config to latest & enable tailwind css rules

This commit is contained in:
NFish 2025-02-10 15:11:12 +08:00
parent acb8e8077d
commit fe78f42176
3 changed files with 3787 additions and 3768 deletions

View File

@ -170,14 +170,7 @@ export default combine(
tailwind.configs['flat/recommended'],
{
rules: {
// due to 1k lines of tailwind config, these rule have performance issue
'tailwindcss/no-contradicting-classname': 'off',
'tailwindcss/no-unnecessary-arbitrary-value': 'off',
'tailwindcss/enforces-shorthand': 'off',
'tailwindcss/no-custom-classname': 'off',
// in the future
'tailwindcss/classnames-order': 'off',
'tailwindcss/no-custom-classname': 'error',
},
},
)

View File

@ -123,7 +123,7 @@
"zustand": "^4.5.2"
},
"devDependencies": {
"@antfu/eslint-config": "^3.8.0",
"@antfu/eslint-config": "^4.2.0",
"@chromatic-com/storybook": "^3.1.0",
"@eslint-react/eslint-plugin": "^1.15.0",
"@eslint/eslintrc": "^3.1.0",
@ -180,7 +180,7 @@
"storybook": "8.5.0",
"tailwindcss": "^3.4.14",
"ts-node": "^10.9.2",
"typescript": "4.9.5",
"typescript": "5.7.3",
"uglify-js": "^3.19.3"
},
"resolutions": {
@ -201,4 +201,4 @@
"@types/react-dom": "19.0.3",
"@storybook/test": "8.5.0"
}
}
}

File diff suppressed because it is too large Load Diff