-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
94 lines (94 loc) · 2.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"root": true,
"extends": [
"next/core-web-vitals",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:react-hooks/recommended",
"prettier",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": true,
"tsconfigRootDir": "__dirname"
},
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"plugins": ["@typescript-eslint", "react", "react-hooks", "prettier"],
"rules": {
"@typescript-eslint/array-type": [2, { "default": "generic" }],
"@typescript-eslint/consistent-indexed-object-style": [
2,
"index-signature"
],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": {
"arguments": false,
"attributes": false
}
}
],
"jsx-a11y/control-has-associated-label": 2,
"jsx-a11y/label-has-for": [
2,
{
"required": {
"some": ["nesting", "id"]
}
}
],
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"import/no-absolute-path": 0,
"comma-dangle": ["error", "only-multiline"],
"object-curly-newline": ["error", { "consistent": true }],
"import/prefer-default-export": "off",
"no-plusplus": [2, { "allowForLoopAfterthoughts": true }],
"react/jsx-props-no-spreading": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-param-reassign": [
"error",
{
"props": false
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/display-name": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-var-requires": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"quotes": ["error", "single"],
"max-len": [0, 80, 2, { "ignoreUrls": true }],
"arrow-parens": ["error", "always"],
"react/require-default-props": "off"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}