Skip to content

Commit dc21a11

Browse files
changes
1 parent 0b9ddd5 commit dc21a11

File tree

90 files changed

+874
-3012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+874
-3012
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
lib
33
test/disabled
44
!etc/docs
5-
6-
test/explicit-resource-management

.eslintrc.json

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
},
77
"plugins": [
88
"simple-import-sort",
9-
"import",
109
"@typescript-eslint",
1110
"prettier",
1211
"unused-imports",
1312
"tsdoc",
14-
"mocha",
15-
"github"
13+
"mocha"
1614
],
1715
"extends": [
1816
"eslint:recommended",
@@ -67,15 +65,17 @@
6765
],
6866
"simple-import-sort/imports": "error",
6967
"simple-import-sort/exports": "error",
70-
"import/first": "error",
71-
"import/newline-after-import": "error",
72-
"import/no-duplicates": "error",
7368
"strict": [
7469
"error",
7570
"global"
7671
],
7772
"@typescript-eslint/no-explicit-any": "off",
73+
"@typescript-eslint/no-non-null-assertion": "error",
74+
"@typescript-eslint/no-redundant-type-constituents": "off",
75+
"@typescript-eslint/no-empty-function": "error",
76+
"@typescript-eslint/no-require-imports": "off",
7877
"@typescript-eslint/require-await": "off",
78+
"@typescript-eslint/no-unused-expressions": "off",
7979
"@typescript-eslint/consistent-type-imports": [
8080
"error",
8181
{
@@ -121,12 +121,8 @@
121121
"message": "Do not strictly check typeof undefined (NOTE: currently this rule only detects the usage of 'undefined' string literal so this could be a misfire)"
122122
}
123123
],
124-
"@typescript-eslint/no-unused-vars": [
125-
"error",
126-
{
127-
"argsIgnorePattern": "^_"
128-
}
129-
]
124+
"@typescript-eslint/no-unused-vars": "error",
125+
"no-duplicate-imports": "error"
130126
},
131127
"overrides": [
132128
{
@@ -168,6 +164,7 @@
168164
"@typescript-eslint/no-empty-function": "off",
169165
"@typescript-eslint/no-this-alias": "off",
170166
"@typescript-eslint/no-unused-vars": "off",
167+
"@typescript-eslint/consistent-type-imports": "off",
171168
// Since we use ts-node we should always require the TS code
172169
// Also we have patches to apply to the mock server, so we should always import from there
173170
"no-restricted-modules": [
@@ -200,6 +197,15 @@
200197
"no-restricted-syntax": "off",
201198
"typescript-eslint/ban-ts-comment": "off",
202199
"no-restricted-imports": "off",
200+
"@typescript-eslint/no-unused-vars": [
201+
"error",
202+
{
203+
"argsIgnorePattern": "^_",
204+
"caughtErrorsIgnorePattern": "^_",
205+
"destructuredArrayIgnorePattern": "^_",
206+
"varsIgnorePattern": "^_"
207+
}
208+
],
203209
"@typescript-eslint/no-restricted-imports": [
204210
"error",
205211
{
@@ -235,12 +241,23 @@
235241
"@typescript-eslint/restrict-plus-operands": "off",
236242
"@typescript-eslint/restrict-template-expressions": "off",
237243
"@typescript-eslint/require-await": "off",
244+
"@typescript-eslint/no-redundant-type-constituents": "off",
245+
"@typescript-eslint/no-unused-expressions": "off",
246+
"@typescript-eslint/no-explicit-any": "off",
238247
"no-return-await": "off",
239248
"@typescript-eslint/return-await": [
240249
"error",
241250
"always"
242251
],
243-
"github/no-then": "error",
252+
"@typescript-eslint/no-unused-vars": [
253+
"error",
254+
{
255+
"argsIgnorePattern": "^_",
256+
"caughtErrorsIgnorePattern": "^_",
257+
"destructuredArrayIgnorePattern": "^_",
258+
"varsIgnorePattern": "^_"
259+
}
260+
],
244261
"no-restricted-imports": [
245262
"error",
246263
{
@@ -263,7 +280,7 @@
263280
"tsdoc/syntax": "warn",
264281
"no-console": "off",
265282
"@typescript-eslint/no-explicit-any": "off",
266-
"@typescript-eslint/no-unused-vars": "error",
283+
"@typescript-eslint/no-unused-vars": "off",
267284
"@typescript-eslint/ban-ts-comment": "off",
268285
"@typescript-eslint/no-empty-function": "off"
269286
}
@@ -276,7 +293,18 @@
276293
],
277294
"parser": "@typescript-eslint/parser",
278295
"rules": {
279-
"unused-imports/no-unused-imports": "error"
296+
"unused-imports/no-unused-imports": "error",
297+
"@typescript-eslint/no-empty-object-type": "off",
298+
"@typescript-eslint/no-unsafe-declaration-merging": "off",
299+
"no-duplicate-imports": "off",
300+
"@typescript-eslint/consistent-type-imports": [
301+
"error",
302+
{
303+
"prefer": "type-imports",
304+
"disallowTypeAnnotations": false,
305+
"fixStyle": "separate-type-imports"
306+
}
307+
]
280308
}
281309
}
282310
]

0 commit comments

Comments
 (0)