Skip to content

Commit b400066

Browse files
committed
Update to eslint v9, remove replecated packages
1 parent 494081b commit b400066

Some content is hidden

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

56 files changed

+477
-1087
lines changed

eslint.config.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import globals from 'globals'
2+
import pluginJs from '@eslint/js'
3+
import tseslint from 'typescript-eslint'
4+
import pluginReact from 'eslint-plugin-react'
5+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
6+
7+
export default [
8+
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
9+
{ languageOptions: { globals: globals.node } },
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommended,
12+
pluginReact.configs.flat['jsx-runtime'],
13+
eslintPluginPrettierRecommended,
14+
{
15+
rules: {
16+
'@typescript-eslint/no-explicit-any': 'off',
17+
'@typescript-eslint/ban-ts-comment': 'off',
18+
},
19+
languageOptions: {
20+
parserOptions: {
21+
parser: '@babel/eslint-parser',
22+
project: './tsconfig.json',
23+
},
24+
},
25+
},
26+
]

0 commit comments

Comments
 (0)