-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
36 lines (36 loc) · 1.38 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
{
"extends": ["standard-with-typescript", "prettier/@typescript-eslint", "prettier"],
"parserOptions": {
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/no-extraneous-class": ["off"],
"@typescript-eslint/no-floating-promises": ["off"],
"@typescript-eslint/prefer-readonly": ["off"],
"@typescript-eslint/strict-boolean-expressions": ["off"],
"@typescript-eslint/no-useless-constructor": ["off"],
"@typescript-eslint/no-empty-function": ["off"],
"@typescript-eslint/explicit-function-return-type": ["off"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"eol-last": ["error", "always"],
"no-caller": ["error"],
"no-bitwise": ["error"],
"no-debugger": ["error"],
"@typescript-eslint/no-empty-interface": ["error"],
"no-eval": ["error"],
"no-var": ["error"],
"no-use-before-define": ["error"],
"radix": ["error", "always"],
"eqeqeq": ["error", "always"],
"dot-notation": "off",
"no-useless-escape": "off",
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/consistent-type-assertions": ["error", {
"assertionStyle": "as",
"objectLiteralTypeAssertions": "allow-as-parameter"
}]
}
}