/
.eslintrc
61 lines (61 loc) · 1.37 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
{
"extends": [
"airbnb",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"root": true,
"plugins": [
"react",
"react-hooks",
"@typescript-eslint"
],
"rules": {
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"arrow-parens": "off",
"consistent-return": "off",
"func-names": "off",
"radix": "off",
"no-unused-vars": [
"off",
{
"vars": "local"
}
],
"space-infix-ops": "warn",
"import/no-unresolved": "off",
"import/extensions": "off",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"linebreak-style": "off",
"no-console": "off", // Allow console.logs
"no-param-reassign": "off",
"react/function-component-definition": "off",
"arrow-body-style": "off",
"import/prefer-default-export": "off",
"lines-between-class-members": "off",
"no-use-before-define": "off",
"no-multiple-empty-lines": "off",
"no-underscore-dangle": "off",
"no-alert": "off",
"no-case-declarations": "off",
"max-classes-per-file": "off"
},
"env": {
"es6": true,
"browser": true,
"webextensions": true
},
"globals": {},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
}