-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.mjs
50 lines (46 loc) · 1.17 KB
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import globals from 'globals';
import pluginReact from 'eslint-plugin-react';
import tsEslint from '@typescript-eslint/eslint-plugin';
import unusedImports from 'eslint-plugin-unused-imports';
import parser from '@typescript-eslint/parser';
export default [
{
languageOptions: {
parser: parser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.node,
es2021: true,
},
},
},
{
plugins: {
'unused-imports': unusedImports,
react: pluginReact,
'@typescript-eslint': tsEslint,
},
rules: {
'unused-imports/no-unused-imports': 'warn',
'@typescript-eslint/no-unused-vars': 'off',
'no-console': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
},
settings: {
react: {
version: 'detect',
},
},
},
];