Skip to content

Commit

Permalink
Add @typescript-eslint/prefer-promise-reject-errors rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 16, 2024
1 parent df07e88 commit 9533972
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ module.exports = {
}
],
'@typescript-eslint/prefer-optional-chain': 'error',
'prefer-promise-reject-errors': 'off',
'@typescript-eslint/prefer-promise-reject-errors': 'error',
'@typescript-eslint/prefer-readonly': 'error',

// TODO: Try to enable this again in 2023.
Expand Down

0 comments on commit 9533972

Please sign in to comment.