Skip to content

Commit

Permalink
feat!: @typescript-eslint/no-loop-func
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 27, 2024
1 parent 8212a2e commit d8e3d4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ const rules = {
'@typescript-eslint/no-implied-eval': ['error'],
'@typescript-eslint/no-import-type-side-effects': ['error'],
'@typescript-eslint/no-invalid-void-type': ['error'],
'@typescript-eslint/no-loop-func': ['error'],
'@typescript-eslint/no-loss-of-precision': ['error'],
'@typescript-eslint/no-misused-new': ['error'],
'@typescript-eslint/no-misused-promises': ['error'],
Expand Down
2 changes: 2 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = {
'no-iterator': ['error'],
'no-labels': ['error', { allowLoop: false, allowSwitch: false }],
'no-lone-blocks': ['error'],
'no-loop-func': ['off'],
'no-loss-of-precision': ['off'],
'no-misleading-character-class': ['error'],
'no-prototype-builtins': ['error'],
Expand Down Expand Up @@ -336,6 +337,7 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = {
'@typescript-eslint/no-implied-eval': ['error'],
'@typescript-eslint/no-import-type-side-effects': ['error'],
'@typescript-eslint/no-invalid-void-type': ['error'],
'@typescript-eslint/no-loop-func': ['error'],
'@typescript-eslint/no-loss-of-precision': ['error'],
'@typescript-eslint/no-misused-new': ['error'],
'@typescript-eslint/no-misused-promises': ['error'],
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,7 +1,6 @@
export const rulesToConsider = [
'@typescript-eslint/no-empty-object-type',
'@typescript-eslint/no-inferrable-types',
'@typescript-eslint/no-loop-func',
'@typescript-eslint/no-magic-numbers',
'@typescript-eslint/no-meaningless-void-operator',
'@typescript-eslint/no-mixed-enums',
Expand Down Expand Up @@ -157,7 +156,6 @@ export const rulesToConsider = [
'no-invalid-this',
'no-label-var',
'no-lonely-if',
'no-loop-func',
'no-magic-numbers',
'no-multi-assign',
'no-negated-condition',
Expand Down

0 comments on commit d8e3d4d

Please sign in to comment.