Add an option for "new-parens" to require having no parenthesis on new #10034
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
auto closed
The bot closed this issue
enhancement
This change enhances an existing feature of ESLint
evaluating
The team will evaluate this issue to decide whether it meets the criteria for inclusion
rule
Relates to ESLint's core rules
#10074 <!--
ESLint adheres to the JS Foundation Code of Conduct.
-->
What rule do you want to change?
new-parens
Does this change cause the rule to produce more or fewer warnings?
No
How will the change be implemented? (New option, new default behavior, etc.)?
Adds an option for always requiring or always not allowing new parens
Please provide some example code that this change will affect:
"new-parens": ["error", "never"]
Examples of incorrect code for this rule:
Examples of correct code for this rule:
"new-parens": ["error", "always"]
Examples of incorrect code for this rule:
Examples of correct code for this rule:
What does the rule currently do for this code?
Has no option of setting to require no parenthesis on new with no arguments
What will the rule do after it's changed?
Same thing as it currently does, but also includes an option to require no parenthesis on new constructors with no arguments
The text was updated successfully, but these errors were encountered: