
rules.tslint.no-angle-bracket-type-assertion.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-web-frontend-typescript Show documentation
Show all versions of sonar-web-frontend-typescript Show documentation
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-angle-bracket-type-assertion
Requires the use of as Type
for type assertions instead of <Type>
.
Rationale
Both formats of type assertions have the same effect, but only as
type assertions
work in .tsx
files. This rule ensures that you have a consistent type assertion style
across your codebase.
Config
Not configurable.
Examples
"no-angle-bracket-type-assertion": true
Schema
{}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy