Skip to content

Commit

Permalink
Merge pull request #1749 from mightyiam/typescript-eslint-no-meaningl…
Browse files Browse the repository at this point in the history
…ess-void-operator

feat!: @typescript-eslint/no-meaningless-void-operator
  • Loading branch information
mightyiam authored Sep 14, 2024
2 parents 9556a60 + 7e6d5d0 commit bb9bfa7
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 @@ -149,6 +149,10 @@ const rules = {
ignoreTypeIndexes: false,
},
],
'@typescript-eslint/no-meaningless-void-operator': [
'error',
{ checkNever: true },
],
'@typescript-eslint/no-misused-new': ['error'],
'@typescript-eslint/no-misused-promises': ['error'],
'@typescript-eslint/no-namespace': ['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 @@ -310,6 +310,10 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = {
ignoreTypeIndexes: false,
},
],
'@typescript-eslint/no-meaningless-void-operator': [
'error',
{ checkNever: true },
],
'@typescript-eslint/no-misused-new': ['error'],
'@typescript-eslint/no-misused-promises': ['error'],
'@typescript-eslint/no-namespace': ['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-meaningless-void-operator',
'@typescript-eslint/no-mixed-enums',
'@typescript-eslint/no-non-null-asserted-nullish-coalescing',
'@typescript-eslint/no-redundant-type-constituents',
Expand Down

0 comments on commit bb9bfa7

Please sign in to comment.