This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
63 lines (63 loc) · 1.69 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
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "@typescript-eslint"],
"globals": {
"JSX": "readonly"
},
"rules": {
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-extraneus-dependencies": "off",
"import/prefer-default-export": "off",
"linebreak-style": ["error", "windows"],
"prefer-arrow-callback": "error",
"no-use-before-define": "off",
"no-alert": "error",
"no-array-constructor": "warn",
"no-case-declarations": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-continue": "warn",
"no-debugger": "error",
"no-eval": "warn",
"no-multi-spaces": "error",
"no-new": "warn",
"no-plusplus": "warn",
"no-tabs": "error",
"no-useless-catch": "warn",
"no-empty": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": false }
],
"@typescript-eslint/explicit-function-return-type": "warn",
"react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }],
"react/prop-types": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off"
}
}