-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc
141 lines (141 loc) · 3.01 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"extends": "eslint-config-react-app",
"rules": {
"arrow-parens": [
"error",
"as-needed"
],
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"constructor-super": "off",
"generator-star-spacing": [
"error",
{
"before": false,
"after": true
}
],
"no-class-assign": "error",
"no-confusing-arrow": [
"error",
{
"allowParens": true
}
],
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-new-symbol": "off",
"no-this-before-super": "error",
"no-useless-computed-key": "error",
"no-var": "error",
"object-shorthand": [
"error",
"always",
{
"avoidQuotes": true,
"ignoreConstructors": false
}
],
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": true
}
],
"no-eq-null": "error",
"no-eval": "error",
"default-case": "error",
"no-extra-boolean-cast": "error",
"no-func-assign": "error",
"no-ex-assign": "error",
"no-empty": "error",
"use-isnan": "error",
"valid-typeof": "error",
"no-extra-semi": "error",
"no-duplicate-case": "error",
"no-unused-vars": "warn",
"no-dupe-args": "error",
"no-constant-condition": "error",
// "for-direction": "error",
"prefer-reflect": "off",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "off",
"require-yield": "off",
"no-cond-assign": "error",
"no-dupe-keys": "error",
"linebreak-style": 0,
"no-console": [
"warn",
{
"allow": [
"warn",
"error",
"log"
]
}
],
"no-debugger": "error",
"semi": "error",
"require-await": "off",
"template-curly-spacing": "error",
"yield-star-spacing": [
"error",
{
"before": false,
"after": true
}
],
"dot-location": "error",
"dot-notation": "error",
"no-alert": "error",
"no-with": "error",
"no-caller": "error",
"no-else-return": "error",
"no-extend-native": "error",
"no-new-func": "error",
"no-self-assign": "error",
"no-labels": "error",
"no-multi-str": "error",
"no-redeclare": "error",
"camelcase": "error",
"block-spacing": "error",
"array-bracket-spacing": "error",
"brace-style": "error",
"comma-dangle": [
"error",
{
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "only-multiline"
}
],
"yoda": "error",
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"quote-props": [
"error",
"as-needed"
],
"eol-last": "error",
"consistent-this": "error",
"jsx-quotes": [
"error",
"prefer-double"
],
"init-declarations": "off"
}
}