-
Notifications
You must be signed in to change notification settings - Fork 887
Added function-constructor rule #4198
Added function-constructor rule #4198
Conversation
Blocks using the `Function()`/`new Function()` methods to create new functions. Fixes #3554.
@JoshuaKGoldberg Since I'm new to maintaining this, I want to make sure we are doing the right things. Doesn't changing "recommended" constitute a break? |
Heya @ericanderson - technically yes, but historically it's had additive changes in patch versions. For example, If this were removing a rule from Does that sit right with you? I can remove the changed to |
@JoshuaKGoldberg @ericanderson actually, we shouldn't be making
|
Darn, thanks for the clarification @adidahiya! |
I wanted to make it less strict :) |
@ericanderson I agree with that overall goal in v6.0, through #4305 |
PR checklist
Overview of change:
Blocks using the
Function()
/new Function()
methods to create new functions.Fixes #3554.
CHANGELOG.md entry:
[new-rule]
function-constructor