-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
72 lines (72 loc) · 2.25 KB
/
.eslintrc.js
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
module.exports = {
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jest/recommended"
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.eslint.json",
sourceType: "module",
},
plugins: [
"jest",
"@typescript-eslint",
"eslint-plugin-deprecation",
"eslint-plugin-import",
],
rules: {
"no-sequences": "error",
"no-param-reassign": "error",
"no-unused-labels": "error",
"no-cond-assign": "error",
"no-new-wrappers": "error",
"constructor-super": "error",
"no-duplicate-case": "error",
"no-redeclare": "error",
"no-shadow": [
"error",
{
hoist: "all",
},
],
"no-empty": [
"error",
{
allowEmptyCatch: true,
},
],
"no-invalid-this": "error",
"no-unsafe-finally": "error",
"no-var": "warn",
"no-console": "off",
"eqeqeq": ["warn", "always"],
"prefer-const": "error",
"deprecation/deprecation": "warn",
"import/no-extraneous-dependencies": "error",
"import/no-duplicates": "warn",
"import/no-unassigned-import": "warn",
"import/no-internal-modules": "off",
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/triple-slash-reference": [
"error",
{
path: "always",
types: "prefer-import",
lib: "always",
},
],
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/no-confusing-void-expression": "error",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/unified-signatures": "warn",
"@typescript-eslint/no-unsafe-assignment": "error"
},
env: {
"node": true,
},
}