Skip to content

Commit d4911f3

Browse files
committed
fix: add new version of throw literals
1 parent c20b4da commit d4911f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ addRule('neostandard/ts', '@typescript-eslint/return-await', ['error', 'in-try-c
139139
addRule('neostandard/ts', 'jsdoc/require-param', 'off') // do not require jsdoc for params
140140
addRule('neostandard/ts', 'jsdoc/require-param-type', 'off') // allow compiler to derive param type
141141
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
142143

143144
const jsdocSettings = {
144145
mode: 'typescript',

0 commit comments

Comments
 (0)