Skip to content

Commit aac279b

Browse files
authored
Migrate from @typescript-eslint/no-throw-literal to @typescript-eslint/only-throw-error (#136)
1 parent 18ea373 commit aac279b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/lazy-ravens-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@eddeee888/eslint-plugin': patch
3+
---
4+
5+
Migrate from @typescript-eslint/no-throw-literal to @typescript-eslint/only-throw-error

packages/eslint-plugin/src/configs/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const typescriptConfig = {
2323
'no-shadow': 'off',
2424
'@typescript-eslint/no-shadow': 'error',
2525
'no-throw-literal': 'off',
26-
'@typescript-eslint/no-throw-literal': 'error',
26+
'@typescript-eslint/only-throw-error': 'error',
2727
'@typescript-eslint/no-unsafe-member-access': 'error',
2828
'no-unused-expressions': 'off',
2929
'@typescript-eslint/no-unused-expressions': 'error',

0 commit comments

Comments
 (0)