-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
60 lines (59 loc) · 2.01 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
{
"root": true,
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"node": true,
"browser": true,
"es2022": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "react-hooks"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.css", "*.d.ts", "*.ts"],
"parserOptions": {
"requireConfigFile": false,
"ecmaFeatures": {
"jsx": true
},
"tsconfigRootDir": "./",
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"rules": {
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unnecessary-condition": 2,
"react/react-in-jsx-scope": 0,
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": ["error"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"require-await": "off",
"@typescript-eslint/require-await": 0
},
"extends": [
"plugin:@next/next/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"eslint:recommended",
"next",
"next/core-web-vitals",
"plugin:@typescript-eslint/strict",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
]
}
]
}