-
Notifications
You must be signed in to change notification settings - Fork 124
/
.eslintrc.json
67 lines (67 loc) · 1.8 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
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"plugins": [
"import",
"@typescript-eslint",
"@wogns3623/better-exhaustive-deps"
],
"rules": {
// Replace exhaustive-deps hook with a better fork
// Context: https://github.com/facebook/react/issues/16873
"react-hooks/exhaustive-deps": "off",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"@wogns3623/better-exhaustive-deps/exhaustive-deps": [
"warn",
{
"checkMemoizedVariableIsStatic": true,
"staticHooks": {
"useAppDispatch": true
}
}
],
"quotes": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off", // not viable yet
"camelcase": "off",
"no-underscore-dangle": 0,
"react/display-name": 0,
"react/jsx-boolean-value": "off",
"react/jsx-closing-bracket-location": 1,
"react/jsx-curly-spacing": 1,
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-undef": 1,
"react/react-in-jsx-scope": "off",
"jsx-quotes": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 0,
"react/no-set-state": 0,
"react/no-unknown-property": 1,
"react/prop-types": "off",
"import/extensions": 1,
"react/self-closing-comp": 1,
"react/sort-comp": "off",
"react/jsx-wrap-multilines": 1,
"no-redeclare": "warn"
}
}