This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
74 lines (74 loc) · 2.03 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
{
"root": true,
"env": {
"mocha": true
},
"extends": "standard-with-typescript",
"parser": "@typescript-eslint/parser",
"plugins": [
"import",
"n",
"promise"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"semi": "off",
"@typescript-eslint/semi": ["error", "always"],
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["warn", "always-multiline"],
"@typescript-eslint/object-curly-spacing": ["warn", "always"],
"@typescript-eslint/consistent-type-imports": "warn",
"space-in-parens": "warn",
"@typescript-eslint/ban-tslint-comment": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/promise-function-async": "warn",
"@typescript-eslint/return-await": "warn",
"padded-blocks": "warn",
"@typescript-eslint/consistent-type-assertions": "warn",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-base-to-string": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/space-infix-ops": "warn",
"@typescript-eslint/no-throw-literal": "warn",
"@typescript-eslint/consistent-indexed-object-style": ["error", "index-signature"],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}
],
"@typescript-eslint/key-spacing": [
"error",
{
"afterColon": true,
"beforeColon": false
}
],
"import/first": "warn",
"no-mixed-operators": "warn",
"@typescript-eslint/strict-boolean-expressions": "warn",
"@typescript-eslint/space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
]
}
}