Skip to content

Commit

Permalink
Add @typescript-eslint/no-duplicate-type-constituents rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 28, 2023
1 parent b338e7f commit b18da46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ module.exports = {
// allowExpressions: true,
// allowTypedFunctionExpressions: true,
// allowHigherOrderFunctions: true,
// allowConciseArrowFunctionExpressionsStartingWithVoid: false
// allowConciseArrowFunctionExpressionsStartingWithVoid: false,
// allowIIFE: true
// }
// ],

Expand Down Expand Up @@ -375,6 +376,7 @@ module.exports = {
'@typescript-eslint/no-dupe-class-members': 'error',
'@typescript-eslint/no-confusing-void-expression': 'error',
'@typescript-eslint/no-duplicate-enum-values': 'error',
'@typescript-eslint/no-duplicate-type-constituents': 'error',
'@typescript-eslint/no-dynamic-delete': 'error',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'error',
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
"simple"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"ava": "^2.4.0",
"eslint": "^7.8.1",
"typescript": ">=4.4"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=5.43.0",
"@typescript-eslint/parser": ">=5.43.0",
"@typescript-eslint/eslint-plugin": ">=5.57.0",
"@typescript-eslint/parser": ">=5.57.0",
"eslint": ">=8.0.0",
"typescript": ">=4.4"
}
Expand Down

0 comments on commit b18da46

Please sign in to comment.