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

Disable no new func #137

Merged
merged 1 commit into from
Sep 28, 2020
Merged

Conversation

guilhermetod
Copy link
Contributor

typescript-eslint's no implied eval merges two ESLint rules: no-implied-eval and no-new-func (and also blocks setImmediate, which i couldn't find a vanilla ESLint equivalent). Currently, using the following code outputs redundant errors:

/*
Implied eval. Do not use the Function constructor to create functions. eslint(@typescript-eslint/no-implied-eval)
The Function constructor is eval. eslint(no-new-func)
*/
const x = new Function('a', 'b', 'return a + b');

@iamturns iamturns merged commit d2f8bd1 into iamturns:master Sep 28, 2020
@iamturns
Copy link
Owner

Nice one! Thanks @guilhermetod 👍

@iamturns
Copy link
Owner

🎉 This PR is included in version 10.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants