-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
41 lines (40 loc) · 1.18 KB
/
.eslintrc.js
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
module.exports = {
extends: [
"react-app"
],
rules: {
"arrow-body-style": [ "error", "as-needed" ],
"block-spacing": [ "error", "always" ],
"comma-dangle": [ "error", "never" ],
"import/no-anonymous-default-export": "off",
"no-multi-spaces": [ "error" ],
"no-multiple-empty-lines": [ "error" ],
"object-curly-spacing": [ "error", "always", { "arraysInObjects": false } ],
"padded-blocks": [ "error", "never" ],
"quotes": [ "error", "double", { "avoidEscape": true } ],
"space-unary-ops": [ "error" ],
"space-infix-ops": [ "error" ],
"semi": [ "error", "never" ],
"template-curly-spacing": [ "error", "always" ],
"@typescript-eslint/consistent-type-definitions": [ "error", "type" ],
"@typescript-eslint/member-delimiter-style": [
"error", {
multiline: {
delimiter: "none",
requireLast: true
},
singleline: {
delimiter: "comma",
requireLast: false
}
}
],
"@typescript-eslint/type-annotation-spacing": [
"error", {
before: false,
after: true,
overrides: { arrow: { before: true, after: true } }
}
]
}
}