Skip to content

Commit

Permalink
feat!: @typescript-eslint/no-empty-function
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 Jul 20, 2024
1 parent 16adbf4 commit d3fc473
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ const rules = {
{ ignoreIntersections: false, ignoreUnions: false },
],
'@typescript-eslint/no-dynamic-delete': ['error'],
'@typescript-eslint/no-empty-function': [
'error',
{
allow: [],
},
],
'@typescript-eslint/no-empty-interface': [
'error',
{ allowSingleExtends: true },
Expand Down
7 changes: 7 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = {
'no-useless-backreference': ['error'],
'no-empty': ['error', { allowEmptyCatch: true }],
'no-empty-character-class': ['error'],
'no-empty-function': ['off'],
'no-empty-pattern': ['error'],
'no-eval': ['error'],
'no-ex-assign': ['error'],
Expand Down Expand Up @@ -311,6 +312,12 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = {
{ ignoreIntersections: false, ignoreUnions: false },
],
'@typescript-eslint/no-dynamic-delete': ['error'],
'@typescript-eslint/no-empty-function': [
'error',
{
allow: [],
},
],
'@typescript-eslint/no-empty-interface': [
'error',
{ allowSingleExtends: true },
Expand Down
2 changes: 0 additions & 2 deletions 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-empty-function',
'@typescript-eslint/no-empty-object-type',
'@typescript-eslint/no-explicit-any',
'@typescript-eslint/no-import-type-side-effects',
Expand Down Expand Up @@ -149,7 +148,6 @@ export const rulesToConsider = [
'no-dupe-else-if',
'no-duplicate-imports',
'no-else-return',
'no-empty-function',
'no-empty-static-block',
'no-eq-null',
'no-extra-label',
Expand Down

0 comments on commit d3fc473

Please sign in to comment.