Skip to content

Commit

Permalink
Merge pull request #1669 from mightyiam/new-rule-no-duplicate-type-co…
Browse files Browse the repository at this point in the history
…nstituents

feat!: @typescript-eslint/no-duplicate-type-constituents
  • Loading branch information
mightyiam authored Jul 20, 2024
2 parents 2b0b3b0 + 22d7b2c commit 16adbf4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ const rules = {
],
'@typescript-eslint/no-dupe-class-members': ['error'],
'@typescript-eslint/no-duplicate-enum-values': ['error'],
'@typescript-eslint/no-duplicate-type-constituents': [
'error',
{ ignoreIntersections: false, ignoreUnions: false },
],
'@typescript-eslint/no-dynamic-delete': ['error'],
'@typescript-eslint/no-empty-interface': [
'error',
Expand Down
4 changes: 4 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = {
],
'@typescript-eslint/no-dupe-class-members': ['error'],
'@typescript-eslint/no-duplicate-enum-values': ['error'],
'@typescript-eslint/no-duplicate-type-constituents': [
'error',
{ ignoreIntersections: false, ignoreUnions: false },
],
'@typescript-eslint/no-dynamic-delete': ['error'],
'@typescript-eslint/no-empty-interface': [
'error',
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const rulesToConsider = [
'@typescript-eslint/no-duplicate-type-constituents',
'@typescript-eslint/no-empty-function',
'@typescript-eslint/no-empty-object-type',
'@typescript-eslint/no-explicit-any',
Expand Down

0 comments on commit 16adbf4

Please sign in to comment.