-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
55 lines (47 loc) · 1.41 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
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
env: {
node: true,
es2022: true,
jest: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
impliedStrict: true,
jsx: true,
},
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "react-hooks"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
settings: {
react: {
createClass: "createReactClass",
pragma: "React",
fragment: "Fragment",
version: "detect",
},
},
rules: {
"react/display-name": "off",
"react/prop-types": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": [
"warn",
{
additionalHooks: "useDelayedEffect",
},
],
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{ accessibility: "no-public" },
],
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/type-annotation-spacing": "off",
eqeqeq: ["error", "always"],
},
}