refactor: update ESLint configuration to include prettier and adjust rules
This commit is contained in:
@@ -9,6 +9,7 @@ import eslintPluginUnicorn from 'eslint-plugin-unicorn'
|
||||
import reactPlugin from 'eslint-plugin-react'
|
||||
import pluginQuery from '@tanstack/eslint-plugin-query'
|
||||
import unusedImports from 'eslint-plugin-unused-imports'
|
||||
import eslintConfigPrettier from 'eslint-config-prettier'
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: ['dist', 'node_modules', '.react-router'] },
|
||||
@@ -19,6 +20,7 @@ export default tseslint.config(
|
||||
jsxA11y.flatConfigs.recommended,
|
||||
importPlugin.flatConfigs.recommended,
|
||||
eslintPluginUnicorn.configs['flat/recommended'],
|
||||
eslintConfigPrettier,
|
||||
],
|
||||
files: ['**/*.{ts,tsx}'],
|
||||
languageOptions: {
|
||||
@@ -44,6 +46,9 @@ export default tseslint.config(
|
||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||
},
|
||||
},
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...reactHooks.configs.recommended.rules,
|
||||
|
||||
Reference in New Issue
Block a user