Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
fix: disable Airbnb no-new-func (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermetod authored Sep 28, 2020
1 parent 0f5adee commit d2f8bd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ module.exports = {
'no-extra-semi': 'off',
'@typescript-eslint/no-extra-semi': baseErrorsRules['no-extra-semi'],

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

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

0 comments on commit d2f8bd1

Please sign in to comment.