-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.34 KB
/
.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
39
40
41
42
43
44
45
46
module.exports = {
'parser': '@typescript-eslint/parser',
'extends': [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:react/recommended',
'prettier',
],
'plugins': [
'@typescript-eslint',
'jsx-a11y',
'prettier',
'react-hooks',
],
'parserOptions': {
'sourceType': 'module',
'project': './tsconfig.json',
},
'env': {
'browser': true
},
'rules': {
// temp disabled - start
'@typescript-eslint/no-explicit-any': 1,
'@typescript-eslint/no-unsafe-assignment': 1,
'@typescript-eslint/no-unsafe-argument': 1,
'@typescript-eslint/no-unsafe-member-access': 1,
'@typescript-eslint/no-unsafe-call': 1,
'@typescript-eslint/no-unsafe-return': 1,
'@typescript-eslint/ban-ts-comment': 1,
'@typescript-eslint/ban-types': 1,
'@typescript-eslint/restrict-template-expressions': 1,
'@typescript-eslint/unbound-method': 1,
'@typescript-eslint/no-non-null-assertion': 1,
'@typescript-eslint/restrict-plus-operands': 1,
'@typescript-eslint/no-empty-function': 1,
'react/prop-types': 0,
'react/display-name': 0,
'react/no-deprecated': 0,
// tmp disabled - end
'prettier/prettier': 2,
'react-hooks/rules-of-hooks': 2,
'react-hooks/exhaustive-deps': 2,
}
};