This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.5 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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
plugins: ["@typescript-eslint", "react"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"prettier",
],
rules: {
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/strict-boolean-expressions": 2,
"@typescript-eslint/switch-exhaustiveness-check": 2,
"@typescript-eslint/restrict-plus-operands": 2,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/require-await": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/ban-ts-comment": 0,
"react/prop-types": 0,
"no-empty": 0,
"no-console": 1,
},
settings: {
react: {
version: "detect",
},
},
}