Skip to content

Commit c5282b8

Browse files
MarcusNotheisLukas742
authored andcommitted
Update eslint.config.mjs
1 parent f80916c commit c5282b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/vite-ts/eslint.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,16 @@ import tseslint from 'typescript-eslint';
77
export default tseslint.config(
88
{ ignores: ['dist'] },
99
{
10-
extends: [js.configs.recommended, ...tseslint.configs.recommended],
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended, reactHooks.configs.flat.recommended, ],
1111
files: ['**/*.{ts,tsx}'],
1212
languageOptions: {
1313
ecmaVersion: 2020,
1414
globals: globals.browser,
1515
},
1616
plugins: {
17-
'react-hooks': reactHooks,
1817
'react-refresh': reactRefresh,
1918
},
2019
rules: {
21-
...reactHooks.configs.recommended.rules,
2220
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
2321
},
2422
},

0 commit comments

Comments
 (0)