Skip to content

Commit 447e22f

Browse files
committed
lint issue
1 parent b16bb42 commit 447e22f

4 files changed

Lines changed: 1749 additions & 45 deletions

File tree

FRONTEND/eslint.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import js from '@eslint/js'
22
import globals from 'globals'
33
import reactHooks from 'eslint-plugin-react-hooks'
44
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import react from 'eslint-plugin-react'
56
import { defineConfig, globalIgnores } from 'eslint/config'
67

78
export default defineConfig([
89
globalIgnores(['dist']),
910
{
1011
files: ['**/*.{js,jsx}'],
12+
...react.configs.flat.recommended,
1113
extends: [
1214
js.configs.recommended,
1315
reactHooks.configs.flat.recommended,
@@ -22,8 +24,14 @@ export default defineConfig([
2224
sourceType: 'module',
2325
},
2426
},
27+
settings: { react: { version: '18.3' } },
28+
plugins: {
29+
react,
30+
},
2531
rules: {
26-
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
32+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]|motion' }],
33+
'react/react-in-jsx-scope': 'off',
34+
'react/prop-types': 'off',
2735
},
2836
},
2937
])

0 commit comments

Comments
 (0)