No-New-Symbol¶
Sourcery rule id: no-new-symbol
¶
Description¶
An instance of Symbol
can only be created using Symbol
as a function
Before¶
new Symbol("abc")
After¶
Symbol("abc")
Explanation¶
Symbol
is not intended to be used with the new
operator, but called as a function.