Skip to content

Commit ad31bdf

Browse files
committed
Add @typescript-eslint/no-throw-literal rule
1 parent 756bc81 commit ad31bdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ module.exports = {
243243
allowDestructuring: true
244244
}
245245
],
246+
'no-throw-literal': 'off',
247+
'@typescript-eslint/no-throw-literal': 'error',
246248

247249
// TODO: Reconsider enabling this again in 2020.
248250
// Disable because it has too many false-positives: https://github.com/typescript-eslint/typescript-eslint/search?q=no-unnecessary-condition+is%3Aissue&state=open&type=Issues

0 commit comments

Comments
 (0)