We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@typescript-eslint/no-throw-literal
only-throw-error
1 parent 6250661 commit c67389cCopy full SHA for c67389c
packages/eslint-config-typescript/index.mjs
@@ -247,7 +247,7 @@ const config = {
247
// the `Error` object as base objects for user-defined exceptions. The fundamental benefit of
248
// `Error` objects is that they automatically keep track of where they were built and
249
// originated.
250
- '@typescript-eslint/no-throw-literal': [base.rules['no-throw-literal'], {
+ '@typescript-eslint/only-throw-error': [base.rules['no-throw-literal'], {
251
allowThrowingAny: false,
252
allowThrowingUnknown: false,
253
}],
0 commit comments