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

pull/13892/head
NFish 1 year ago
parent acb8e8077d
commit fe78f42176

@ -170,14 +170,7 @@ export default combine(
tailwind.configs['flat/recommended'], tailwind.configs['flat/recommended'],
{ {
rules: { rules: {
// due to 1k lines of tailwind config, these rule have performance issue 'tailwindcss/no-custom-classname': 'error',
'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',
}, },
}, },
) )

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

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save