Skip to content

Commit

Permalink
Disable the @typescript-eslint/no-redundant-type-constituents rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 14, 2023
1 parent 6b735fd commit 59a5d77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,10 @@ module.exports = {
],
},
],
'@typescript-eslint/no-redundant-type-constituents': 'error',

// The rule is buggy and keeps inferring `any` for types that are not `any`. Just a lot of false-positives.
// '@typescript-eslint/no-redundant-type-constituents': 'error',

'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-this-alias': [
'error',
Expand Down

0 comments on commit 59a5d77

Please sign in to comment.