Skip to content

Commit 05c632a

Browse files
committed
chore: update ESLint configuration and dependencies for improved code quality and maintainability
1 parent 3534902 commit 05c632a

100 files changed

Lines changed: 1087 additions & 1221 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/pnpm-lock.yaml

Lines changed: 199 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/web/eslint.config.js

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import reactHooks from 'eslint-plugin-react-hooks'
44
import reactRefresh from 'eslint-plugin-react-refresh'
55
import prettier from 'eslint-plugin-prettier'
66
import prettierConfig from 'eslint-config-prettier'
7-
import { defineConfig, globalIgnores } from 'eslint/config'
7+
import tseslint from 'typescript-eslint'
88

9-
export default defineConfig([
10-
globalIgnores(['dist']),
9+
export default tseslint.config(
10+
{ ignores: ['dist'] },
1111
{
12-
files: ['**/*.{js,jsx,ts,tsx}'],
12+
files: ['**/*.{js,jsx}'],
1313
extends: [
1414
js.configs.recommended,
1515
reactHooks.configs.flat.recommended,
@@ -33,4 +33,30 @@ export default defineConfig([
3333
'prettier/prettier': 'warn',
3434
},
3535
},
36-
])
36+
{
37+
files: ['**/*.{ts,tsx}'],
38+
extends: [
39+
js.configs.recommended,
40+
...tseslint.configs.recommended,
41+
reactHooks.configs.flat.recommended,
42+
reactRefresh.configs.vite,
43+
],
44+
plugins: {
45+
prettier,
46+
},
47+
languageOptions: {
48+
ecmaVersion: 2020,
49+
globals: globals.browser,
50+
parserOptions: {
51+
ecmaVersion: 'latest',
52+
ecmaFeatures: { jsx: true },
53+
sourceType: 'module',
54+
},
55+
},
56+
rules: {
57+
...prettierConfig.rules,
58+
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
59+
'prettier/prettier': 'warn',
60+
},
61+
},
62+
)

frontend/web/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,12 @@
9595
"@vitest/coverage-v8": "^4.0.14",
9696
"@vitest/ui": "^4.0.14",
9797
"eslint": "^9.39.1",
98+
"eslint-config-prettier": "^9.1.0",
99+
"eslint-plugin-prettier": "^5.2.1",
98100
"eslint-plugin-react-hooks": "^7.0.1",
99101
"eslint-plugin-react-refresh": "^0.4.24",
100102
"globals": "^16.5.0",
103+
"typescript-eslint": "^8.18.2",
101104
"happy-dom": "^20.0.10",
102105
"tailwindcss": "^4.1.17",
103106
"typescript": "~5.9.2",

0 commit comments

Comments
 (0)