-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
75 lines (75 loc) · 1.8 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"comma-spacing": ["error", { "before": false, "after": true }],
"object-curly-spacing": ["error", "always"],
"block-spacing": "error",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"quote-props": [
"error",
"as-needed",
{ "keywords": false }
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"react/prop-types": 0,
"react/no-unescaped-entities": 0,
"space-infix-ops": [
"error"
],
"vars-on-top": "warn",
"no-unused-expressions": "warn",
"eqeqeq": "warn",
"default-case": "error",
"max-classes-per-file": "error",
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"object-shorthand": "error",
"eol-last": ["error", "always"],
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": false
}
],
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"space-before-blocks":"error",
"curly": ["error", "multi-or-nest"],
"brace-style": 2
}
}