-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (58 loc) · 1.75 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
58
{
"env": {
"browser": true,
"es2021": true,
"jest": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error"],
"block-spacing": ["error"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"func-call-spacing": ["error", "always", { "allowNewlines": true }],
"indent": ["error", 2, {
"ignoredNodes": ["CallExpression"],
"SwitchCase": 1
}],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
"mode": "strict"
}],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"no-extra-semi": ["error"],
"no-multi-spaces": ["error"],
"no-trailing-spaces": ["error"],
"object-curly-spacing": ["error", "always"],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "double", { "allowTemplateLiterals": true, "avoidEscape": true}],
"semi": "off",
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": ["error", "never"],
"space-infix-ops": "off",
"@typescript-eslint/member-delimiter-style": ["error"],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/space-infix-ops": ["error", { "int32Hint": false }],
"@typescript-eslint/type-annotation-spacing": ["error", {
"before": false,
"after": true,
"overrides": { "arrow": { "before": true, "after": true }}
}]
}
}