Skip to content

Commit 083f8b1

Browse files
committed
fix UI linter issues
1 parent 80c3bfb commit 083f8b1

File tree

11 files changed

+261
-277
lines changed

11 files changed

+261
-277
lines changed

web-ui/eslint.config.mjs

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
1-
// ESLint flat config for React + TypeScript
2-
// Dependencies will be configured after npm install
1+
import tsParser from '@typescript-eslint/parser';
2+
import tsPlugin from '@typescript-eslint/eslint-plugin';
3+
import reactPlugin from 'eslint-plugin-react';
4+
import reactHooksPlugin from 'eslint-plugin-react-hooks';
5+
36
export default [
47
{
58
ignores: ['node_modules/**', 'dist/**', '*.config.js', '*.config.mjs'],
69
},
10+
{
11+
files: ['src/**/*.{ts,tsx}'],
12+
languageOptions: {
13+
parser: tsParser,
14+
parserOptions: {
15+
ecmaVersion: 2020,
16+
sourceType: 'module',
17+
ecmaFeatures: { jsx: true },
18+
},
19+
},
20+
plugins: {
21+
'@typescript-eslint': tsPlugin,
22+
'react': reactPlugin,
23+
'react-hooks': reactHooksPlugin,
24+
},
25+
settings: {
26+
react: { version: 'detect' },
27+
},
28+
rules: {
29+
...tsPlugin.configs.recommended.rules,
30+
...reactPlugin.configs.recommended.rules,
31+
...reactHooksPlugin.configs.recommended.rules,
32+
'react/react-in-jsx-scope': 'off',
33+
},
34+
},
735
];

0 commit comments

Comments
 (0)