-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
81 lines (81 loc) · 1.81 KB
/
.eslintrc
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"jest": true,
"browser": true
},
"settings": {
"react": {
"version": "16.8"
},
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".eslintrc"
]
},
"webpack": {
"config": {
"resolve": {
"alias": {
"@": "src"
}
}
}
}
}
},
"plugins": [
"@typescript-eslint",
"react-hooks"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"airbnb-base",
"plugin:prettier/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"rules": {
"import/prefer-default-export": false,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/interface-name-prefix": 0,
"no-use-before-define": [
"error",
{
"functions": false
}
],
"@typescript-eslint/no-use-before-define": 0,
"class-methods-use-this": 0,
"import/no-dynamic-require": false,
"consistent-return": 0,
"no-param-reassign": "off",
"@typescript-eslint/no-explicit-any": 0,
"prefer-destructuring": "off",
"import/no-extraneous-dependencies": false,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-invalid-this": "off",
"react/display-name": false,
"no-await-in-loop": "off",
"no-restricted-syntax": "off",
"array-callback-return": "off",
"global-require": "off",
"@typescript-eslint/no-var-requires": 0,
"no-unused-vars": 0,
"no-script-url": "off",
"import/no-unresolved": [
0
]
}
}