Skip to content

Commit

Permalink
fix(eslint): disable @typescript-eslint/no-redundant-type-constituents
Browse files Browse the repository at this point in the history
As it breaks some useful cases such as `'a' | string`
  • Loading branch information
kirillgroshkov committed May 17, 2022
1 parent 9a13aa4 commit 989697e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfg/eslint-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ module.exports = {
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
],
'@typescript-eslint/no-duplicate-enum-values': 2,
'@typescript-eslint/no-redundant-type-constituents': 2,
'@typescript-eslint/no-redundant-type-constituents': 0, // `'a' | string` is still useful for DX
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-explicit-any': 0,
Expand Down

0 comments on commit 989697e

Please sign in to comment.