Skip to content

Commit

Permalink
fix: rename @typescript-eslint/no-throw-literal -> only-throw-error
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Jan 24, 2025
1 parent 6250661 commit c67389c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-config-typescript/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const config = {
// the `Error` object as base objects for user-defined exceptions. The fundamental benefit of
// `Error` objects is that they automatically keep track of where they were built and
// originated.
'@typescript-eslint/no-throw-literal': [base.rules['no-throw-literal'], {
'@typescript-eslint/only-throw-error': [base.rules['no-throw-literal'], {
allowThrowingAny: false,
allowThrowingUnknown: false,
}],
Expand Down

0 comments on commit c67389c

Please sign in to comment.