-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc-base.json
55 lines (51 loc) · 1.63 KB
/
.eslintrc-base.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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
},
"tsconfigRootDir": "./src",
"useJSXTextNode": true,
"warnOnUnsupportedTypeScriptVersion": true
},
"rules": {
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": ["error"],
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-for-in-array": ["error"],
"@typescript-eslint/no-misused-promises": [
"off",
{
"checksVoidReturn": true,
"checksConditionals": true
}
],
"@typescript-eslint/no-non-null-assertion": ["error"],
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": false,
"allowedNames": []
}
],
"@typescript-eslint/prefer-for-of": ["error"],
"no-return-await": ["error"],
"require-await": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/strict-boolean-expressions": ["error"],
"@typescript-eslint/type-annotation-spacing": [
"off",
{
"before": true,
"after": true
}
],
"@typescript-eslint/prefer-string-starts-ends-with": ["error"],
"@typescript-eslint/unbound-method": ["error"],
"prefer-const": ["error"],
"no-prototype-builtins": ["error"],
"semi": ["error"]
}
}