-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.json
173 lines (173 loc) · 6.13 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"mocha": true,
"es6": true
},
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:all",
"plugin:@typescript-eslint/all"
],
"rules": {
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "enumMember",
"format": [
"PascalCase"
]
}
],
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/no-extra-parens": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-this-alias": "off",
//possibly disable this once we have converted all throw statements to actual errors
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-type-alias": "off",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/init-declarations": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-readonly": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"@typescript-eslint/require-array-sort-compare": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/typedef": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/unified-signatures": "off",
"array-bracket-newline": "off",
"array-element-newline": "off",
"array-type": "off",
"arrow-body-style": "off",
"arrow-parens": "off",
"callback-return": "off",
"capitalized-comments": "off",
"class-methods-use-this": "off",
"complexity": "off",
"consistent-return": "off",
"consistent-this": "off",
"curly": "error",
"default-case": "off",
"dot-location": "off",
"dot-notation": "off",
"func-style": "off",
"function-call-argument-newline": "off",
"function-paren-newline": "off",
"guard-for-in": "off",
"id-length": "off",
"indent": "off",
"init-declarations": "off",
"line-comment-position": "off",
"linebreak-style": "off",
"lines-around-comment": "off",
"lines-between-class-members": "off",
"max-classes-per-file": "off",
"max-depth": "off",
"max-len": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"max-params": "off",
"max-statements": "off",
"multiline-comment-style": "off",
"multiline-ternary": "off",
"new-cap": "off",
"newline-per-chained-call": "off",
"no-await-in-loop": "off",
"no-case-declarations": "off",
"no-constant-condition": "off",
"no-console": "off",
"no-continue": "off",
"no-else-return": "off",
"no-empty": "off",
"no-implicit-coercion": "off",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-labels": "off",
"no-negated-condition": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-process-exit": "off",
"no-prototype-builtins": "off",
"no-shadow": "off",
"no-sync": "off",
"no-ternary": "off",
"no-undefined": "off",
"no-underscore-dangle": "off",
"no-unneeded-ternary": "off",
"no-useless-escape": "off",
"no-warning-comments": "off",
"object-curly-spacing": [
"error",
"always"
],
"object-property-newline": "off",
"object-shorthand": "off",
"one-var": [
"error",
"never"
],
"padded-blocks": "off",
"prefer-const": "error",
"prefer-destructuring": "off",
"prefer-named-capture-group": "off",
"prefer-template": "off",
"quote-props": "off",
"radix": "off",
"require-atomic-updates": "off",
"require-unicode-regexp": "off",
"sort-imports": "off",
"sort-keys": "off",
"spaced-comment": ["error", "always", { "exceptions": ["*"] }],
"vars-on-top": "off",
"wrap-regex": "off"
},
"overrides": [
//disable certain rules for tests
{
"files": [
"*.spec.ts"
],
"rules": {}
}
]
}