Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit fba288e

Browse files
authored
fix: no-loop-func rule (#135)
1 parent 6b4d3ce commit fba288e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/shared.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ module.exports = {
111111
'no-new-func': 'off',
112112
'@typescript-eslint/no-implied-eval': baseBestPracticesRules['no-implied-eval'],
113113

114+
// Replace Airbnb 'no-loop-func' rule with '@typescript-eslint' version
115+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loop-func.md
116+
'no-loop-func': 'off',
117+
'@typescript-eslint/no-loop-func': baseBestPracticesRules['no-loop-func'],
118+
114119
// Replace Airbnb 'no-magic-numbers' rule with '@typescript-eslint' version
115120
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-magic-numbers.md
116121
'no-magic-numbers': 'off',

0 commit comments

Comments
 (0)