Skip to content

Commit e53c5c4

Browse files
authored
chore(eslint-www): suppport TypeScript 5.8 (#82)
1 parent 129502e commit e53c5c4

File tree

3 files changed

+2299
-1294
lines changed

3 files changed

+2299
-1294
lines changed

TypeScript/eslint-www/index.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ export default tseslint.config(
1919
importPlugin.flatConfigs.warnings,
2020
importPlugin.flatConfigs.typescript,
2121
/* eslint-enable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access */
22-
// @ts-expect-error react has a type error
23-
react.configs.flat?.recommended,
22+
react.configs.flat.recommended,
2423

2524
{
2625
plugins: {
2726
'jsx-a11y': jsxA11y,
28-
/* eslint-disable @typescript-eslint/no-unsafe-argument */
2927
'react-hooks': fixupPluginRules(reactHooks),
30-
/* eslint-enable @typescript-eslint/no-unsafe-argument */
3128
},
3229

3330
languageOptions: {
@@ -107,7 +104,7 @@ export default tseslint.config(
107104
'no-this-before-super': 'warn',
108105
'no-throw-literal': 'warn',
109106
'no-undef': 'off',
110-
'no-restricted-globals': ['error'].concat(restrictedGlobals),
107+
'no-restricted-globals': ['error', ...restrictedGlobals],
111108
'no-unreachable': 'warn',
112109
'no-unused-labels': 'warn',
113110
'no-useless-computed-key': 'warn',

0 commit comments

Comments
 (0)