-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy path.eslintrc.js
38 lines (38 loc) · 1016 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
parser: '@babel/eslint-parser',
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:react/jsx-runtime',
],
env: {
browser: true,
es6: true,
jest: true,
node: true,
},
overrides: [
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/no-var-requires': 'off',
'react/prop-types': 'warn',
},
},
],
plugins: ['jsx-a11y', 'react', 'react-hooks'],
rules: {
'no-undef': 'warn',
'no-useless-escape': 'warn',
'react/prop-types': [1, { ignore: ['className', 't'] }],
},
};