Skip to content

Commit

Permalink
feat!: @typescript-eslint/no-meaningless-void-operator
Browse files Browse the repository at this point in the history
Co-authored-by: Rostislav Simonik <rostislav.simonik@technologystudio.sk>
  • Loading branch information
mightyiam and rostislav-simonik committed Sep 14, 2024
1 parent 9556a60 commit 7e6d5d0
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 7e6d5d0

Please sign in to comment.