Skip to content

Commit 784ff12

Browse files
committed
TypeScript upgrade 5.8.x
Also bumping eslint, jest ... Migrate to new eslint config format
1 parent 489bd5d commit 784ff12

File tree

23 files changed

+9715
-21043
lines changed

23 files changed

+9715
-21043
lines changed

web/.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

web/.eslintrc.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

web/eslint.config.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import tsPlugin from '@typescript-eslint/eslint-plugin';
2+
import tsParser from '@typescript-eslint/parser';
3+
import reactPlugin from "eslint-plugin-react";
4+
5+
export default [
6+
reactPlugin.configs.flat.recommended,
7+
{
8+
languageOptions: {
9+
parser: tsParser,
10+
},
11+
plugins: {
12+
"@typescript-eslint": tsPlugin,
13+
},
14+
files: ['**/*.{ts,tsx}'],
15+
rules: {
16+
'max-len': ['warn', { code: 170 }],
17+
'react-hooks/rules-of-hooks': 'error',
18+
'react-hooks/exhaustive-deps': 'warn',
19+
'react/prop-types': 'off',
20+
'@typescript-eslint/no-empty-interface': 'off',
21+
'@typescript-eslint/no-non-null-assertion': 'off',
22+
},
23+
settings: {
24+
react: {
25+
pragma: 'React',
26+
version: 'detect'
27+
}
28+
}
29+
},
30+
];

0 commit comments

Comments
 (0)