Skip to content

Commit 02e3ccd

Browse files
authored
#193 - upgrade of several low risk package (#296)
1 parent fd07349 commit 02e3ccd

File tree

11 files changed

+331
-358
lines changed

11 files changed

+331
-358
lines changed

client/eslint.config.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
1-
import js from '@eslint/js';
1+
import { globalIgnores } from 'eslint/config';
22
import globals from 'globals';
3+
import js from '@eslint/js';
34
import reactHooks from 'eslint-plugin-react-hooks';
45
import reactRefresh from 'eslint-plugin-react-refresh';
56
import tseslint from 'typescript-eslint';
6-
import { globalIgnores } from 'eslint/config';
77

88
export default tseslint.config([
99
globalIgnores(['dist', 'node_modules']),
10+
js.configs.recommended,
11+
...tseslint.configs.recommended,
1012
{
1113
files: ['**/*.{ts,tsx}'],
12-
extends: [
13-
js.configs.recommended,
14-
tseslint.configs.recommended,
15-
reactHooks.configs['recommended-latest'],
16-
reactRefresh.configs.vite,
17-
],
14+
plugins: {
15+
'react-hooks': reactHooks,
16+
'react-refresh': reactRefresh,
17+
},
1818
languageOptions: {
1919
ecmaVersion: 2020,
2020
globals: {
2121
...globals.browser,
2222
},
23+
parserOptions: {
24+
ecmaFeatures: {
25+
jsx: true,
26+
},
27+
},
2328
},
2429
rules: {
30+
...reactHooks.configs.recommended.rules,
2531
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
2632
},
2733
},

0 commit comments

Comments
 (0)