-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
50 lines (50 loc) · 1.53 KB
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"import/no-extraneous-dependencies": ["off", {"devDependencies": true}],
"react/jsx-props-no-spreading": "off",
"no-useless-catch": "off",
"consistent-return": "off",
"no-new": 0,
"no-use-before-define": [
"off",
{ "functions": false, "classes": false }
],
"react/no-array-index-key": "off",
"no-console": "off",
"no-unused-vars": "off",
"global-require": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"import/prefer-default-export": "off",
"import/extensions": ["off"],
"react/jsx-filename-extension": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"no-nested-ternary": "off",
"react/function-component-definition": [
2,
{ "namedComponents": ["arrow-function", "function-declaration"] }
],
"react/require-default-props": "off",
"react-hooks/exhaustive-deps": [
"off",
{
"enableDangerousAutofixThisMayCauseInfiniteLoops": true
}
]
},
"extends": [
"prettier",
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
]
}