This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc.json
59 lines (56 loc) · 1.52 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
{
"root": true,
"env": {
"browser": true,
"es6": true,
"node": true
},
"ignorePatterns": ["/*.js", "coverage", ".next/**"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["eslint-plugin-import", "@typescript-eslint", "react", "react-hooks"],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/unified-signatures": "error",
"import/no-deprecated": "error",
"import/no-extraneous-dependencies": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-duplicate-imports": "error",
"no-empty-function": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-void": "error",
"react/display-name": "off",
"react/jsx-uses-react": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-async-promise-executor": "off"
},
"settings": {
"import/resolver": {
"node": {
"paths": ["."]
}
},
"react": {
"version": "detect"
}
}
}