You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addRule('neostandard/ts','@typescript-eslint/no-unsafe-argument','off')// allow passing args with `any` type to functions
136
148
addRule('neostandard/ts','@typescript-eslint/unbound-method','off')// allow invoking functions that may be unbound (e.g. passed as part of an options object)
137
-
addRule('neostandard/ts','no-return-await','off')// disable this rule to use @typescript-eslint/return-await instead
138
149
addRule('neostandard/ts','@typescript-eslint/return-await',['error','in-try-catch'])// require awaiting thenables returned from try/catch
150
+
addRule('neostandard/ts','@typescript-eslint/only-throw-error','error')// only throw Error objects
139
151
addRule('neostandard/ts','jsdoc/require-param','off')// do not require jsdoc for params
140
152
addRule('neostandard/ts','jsdoc/require-param-type','off')// allow compiler to derive param type
141
153
addRule('neostandard/ts','import/consistent-type-specifier-style',['error','prefer-top-level'])// prefer `import type { Foo }` over `import { type Foo }`
142
-
addRule('neostandard/ts','@typescript-eslint/only-throw-error','error')// only throw Error objects
143
154
144
155
constjsdocSettings={
145
156
mode: 'typescript',
@@ -203,7 +214,7 @@ const jsdocConfig = {
203
214
// parse various forms correctly. For now warn on invalid type from,
0 commit comments