This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
57 lines (57 loc) · 1.84 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
{
"extends": [
"react-app",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"plugins": [
"react",
"@typescript-eslint",
"react-hooks"
],
"env": {
"browser": true,
"jest": true,
"es6": true,
"node": true
},
"rules": {
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/ban-types": 0,
"arrow-body-style": "off",
"array-bracket-spacing": [2, "always"],
"import/order": "off",
"jsx-quotes": [2, "prefer-double"],
"no-console": "error",
"no-fallthrough": 0,
"no-multiple-empty-lines": ["error", { "max": 2, "maxBOF": 1}],
"no-unused-vars": "off",
"no-useless-escape": 0,
"object-curly-spacing": [2, "always"],
"quotes": [2, "single", { "avoidEscape": true }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"react/display-name": 0,
"react/jsx-tag-spacing": 2,
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"semi": ["error", "never"],
"sort-imports": "off",
"space-before-function-paren": [2, "never"],
"switch-colon-spacing": [2, {"after": true, "before": false}]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"parser": "@typescript-eslint/parser"
}