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

Commit d2f8bd1

Browse files
authored
fix: disable Airbnb no-new-func (#137)
1 parent 0f5adee commit d2f8bd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/shared.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ module.exports = {
105105
'no-extra-semi': 'off',
106106
'@typescript-eslint/no-extra-semi': baseErrorsRules['no-extra-semi'],
107107

108-
// Replace Airbnb 'no-implied-eval' rule with '@typescript-eslint' version
108+
// Replace Airbnb 'no-implied-eval' and 'no-new-func' rules with '@typescript-eslint' version
109109
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implied-eval.md
110110
'no-implied-eval': 'off',
111+
'no-new-func': 'off',
111112
'@typescript-eslint/no-implied-eval': baseBestPracticesRules['no-implied-eval'],
112113

113114
// Replace Airbnb 'no-magic-numbers' rule with '@typescript-eslint' version

0 commit comments

Comments
 (0)