no-new-symbol
Configuration
rslint.config.ts
Rule Details
Disallows new Symbol(). Symbol is not intended to be used with the new operator, but to be called as a function. Calling new Symbol() throws a TypeError at runtime because Symbol is not a constructor.
Examples of incorrect code for this rule:
Examples of correct code for this rule: