All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rules.tslint.no-construct.html Maven / Gradle / Ivy

Go to download

Consume reports generated by tslint for code quality. Also consume reports for code duplication (either simian or cpd). Consumes the unit/integration tests reports (generated by Jasmin) coverage report (lcov generated by Istanbul). The information generated by reports are added in Sonar

The newest version!

Details

Rule: no-construct

Disallows access to the constructors of String, Number, and Boolean.

Disallows constructor use such as new Number(foo) but does not disallow Number(foo).

Rationale

There is little reason to use String, Number, or Boolean as constructors. In almost all cases, the regular function-call version is more appropriate. More details are available on StackOverflow.

Config

Not configurable.

Examples
"no-construct": true
Schema
{}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy