Skip to content

Commit c67389c

Browse files
fix: rename @typescript-eslint/no-throw-literal -> only-throw-error
https://typescript-eslint.io/rules/only-throw-error/
1 parent 6250661 commit c67389c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-config-typescript/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const config = {
247247
// the `Error` object as base objects for user-defined exceptions. The fundamental benefit of
248248
// `Error` objects is that they automatically keep track of where they were built and
249249
// originated.
250-
'@typescript-eslint/no-throw-literal': [base.rules['no-throw-literal'], {
250+
'@typescript-eslint/only-throw-error': [base.rules['no-throw-literal'], {
251251
allowThrowingAny: false,
252252
allowThrowingUnknown: false,
253253
}],

0 commit comments

Comments
 (0)