Skip to content

Commit

Permalink
Restore @typescript-eslint/no-unsafe-argument (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Dec 12, 2022
1 parent 3b56ab3 commit 4fd54c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,7 @@ module.exports = {
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unnecessary-type-constraint': 'error',

// Disabled for now. When using try/catch, the error is by default `any` and if you pass the error anywhere, it will trigger this rule. This is a very common occurence.
// TODO: Enable this rule when TypeScript has more strongly typed errors, probably 2023 at the earliest.
// '@typescript-eslint/no-unsafe-argument': 'error',

'@typescript-eslint/no-unsafe-argument': 'error',
'@typescript-eslint/no-unsafe-assignment': 'error',
'@typescript-eslint/no-unsafe-call': 'error',
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
Expand Down

0 comments on commit 4fd54c2

Please sign in to comment.