new-cap rule could accept "Error" as an exception #2098
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Hello,
Currently, the "new-cap" rule has a property "capIsNewExceptions" which defaults to the following value:
["Object", "Function", "Number", "String", "Boolean", "Date", "Array", "Symbol", "RegExp"]
What do you think about adding "Error" to this list?
Cheers
The text was updated successfully, but these errors were encountered: