-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
95 lines (95 loc) · 2.25 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/jsx-runtime",
"prettier",
"prettier/react",
"prettier/@typescript-eslint"
],
"rules": {
"react/prop-types": 0,
"react-hooks/rules-of-hooks": "error",
"no-console": "warn",
"react/display-name": 0,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/prefer-includes": 1,
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/require-await": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unnecessary-type-assertion": [
"error",
{ "typesToIgnore": [] }
],
"@typescript-eslint/no-inferrable-types": [
"warn",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none"
}
],
"@typescript-eslint/no-explicit-any": [
"error",
{
"ignoreRestArgs": true
}
],
"@typescript-eslint/unbound-method": [
"error",
{
"ignoreStatic": true
}
]
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react",
"import",
"jsx-a11y",
"react-hooks"
],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"typescript": {
"alwaysTryTypes": true
}
}
}
}