-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
95 lines (95 loc) · 2.48 KB
/
.eslintrc
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
95
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "prettier", "react-hooks"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"rules": {
"no-undef": [0, "never"],
"jsx-quotes": [1, "prefer-double"],
"camelcase": [
1,
{
"properties": "always"
}
],
"comma-dangle": [0, "never"],
"semi": [1, "always"],
"quotes": [
1,
"single",
{
"allowTemplateLiterals": true
}
],
"strict": [1, "global"],
"no-multiple-empty-lines": [
1,
{
"max": 1
}
],
"no-control-regex": 0,
"prefer-spread": 0,
"prefer-rest-params": 0,
"require-atomic-updates": "off",
"no-prototype-builtins": 0,
"no-inner-declarations": 0,
"@typescript-eslint/indent": [
0,
2,
{
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral > *", "JSXOpeningElement > *"]
}
],
"@typescript-eslint/interface-name-prefix": [0, "always"],
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/triple-slash-reference": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/ban-types": 0,
"react/jsx-curly-spacing": 0,
"react/jsx-indent-props": 0,
"react/jsx-indent": [0, 2],
"react/jsx-no-undef": 0,
"react/prop-types": 0,
"react/display-name": 0,
"react/no-string-refs": 0,
"react/jsx-key": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-no-target-blank": 0,
"react/no-unescaped-entities": 0,
"react-hooks/rules-of-hooks": "warn", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
}
}