-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
37 lines (36 loc) · 1.08 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
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-multiple-empty-lines": ["error"],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "double", { "avoidEscape": true }],
"space-unary-ops": ["error"],
"space-infix-ops": ["error"],
"semi": ["error", "never"],
"template-curly-spacing": ["error", "always"],
"react/jsx-indent-props": ["error", 2],
"react/jsx-indent" : ["error", 2],
"@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 } }
}]
}
}