This repository has been archived by the owner on Feb 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
78 lines (78 loc) · 2.37 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
75
76
77
78
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
//#region Rules: Core + @typescript-eslint
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/ban-ts-ignore": "warn",
"@typescript-eslint/camelcase": "warn",
"@typescript-eslint/class-name-casing": "warn",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/comma-spacing": ["warn"],
"@typescript-eslint/require-await": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-includes": "warn",
"arrow-body-style": ["warn", "as-needed"],
"no-return-await": "error",
"class-methods-use-this": "off",
"comma-spacing": "off",
"no-async-promise-executor": "warn",
"no-bitwise": [
"error",
{
"allow": [
"<<",
">>",
"&",
"|",
"|="
]
}
],
"no-console": "off",
"no-duplicate-imports": ["error", { "includeExports": false }],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-param-reassign": "error",
"no-shadow": "error",
"no-throw-literal": "error",
"no-useless-computed-key": "error",
"no-else-return": "warn",
"no-useless-return": "warn",
"no-constructor-return": "warn",
"prefer-destructuring": [
"warn",
{
"object": true,
"array": false
}
]
//#endregion
}
}