no-unreadable-new-expression
Added in v0.9.1Configuration
rslint.config.ts
Rule Details
Disallow accessing a member directly from a new expression and disallow
complex expressions as constructors. Keeping construction separate from later
member access avoids JavaScript's precedence-sensitive new syntax.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Identifier constructors and static member constructors such as
new Namespace.Constructor() are allowed.