-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
32 lines (32 loc) · 891 Bytes
/
.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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/stylistic",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/method-signature-style": "warn",
"@typescript-eslint/strict-boolean-expressions": "warn",
"eqeqeq": ["warn", "smart"],
"no-console": "warn",
"no-else-return": "warn",
"no-implicit-coercion": "warn",
"object-shorthand": "warn",
"react/destructuring-assignment": "warn",
"react/jsx-no-useless-fragment": "warn",
"react/self-closing-comp": "warn"
},
"settings": {
"react": {
"version": "detect"
}
}
}