-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.json
102 lines (102 loc) · 2 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"ignorePatterns": [
"dist",
"vscode",
"node_modules",
"coverage",
"ormconfig.js",
"jest.config.js",
"jest.setup.js",
"rollup.config.js",
"scripts"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"promise",
"rxjs"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:promise/recommended"
],
"env": {
"node": true,
"jest": true
},
"rules": {
"no-irregular-whitespace": 2,
"array-bracket-spacing": [
2,
"never"
],
"space-in-parens": [
2,
"never"
],
"promise/no-nesting": 0,
"semi": [
2,
"never"
],
"@typescript-eslint/indent": [
"error",
2
],
"@typescript-eslint/comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"@typescript-eslint/quotes": [
"error",
"single"
],
"comma-dangle": 2,
"no-unexpected-multiline": 2,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/explicit-function-return-type": 2,
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used"
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 0
}
],
"eol-last": [
"error",
"always"
],
"@typescript-eslint/member-delimiter-style": [
2,
{
"multiline": {
"delimiter": "none",
"requireLast": true
}
}
],
"rxjs/no-nested-subscribe": 2,
"rxjs/no-index": 2,
"rxjs/no-internal": 2,
"rxjs/no-unsafe-takeuntil": 2,
"rxjs/no-unsafe-first": 2,
"rxjs/no-unsafe-catch": 2
}
}