
rules.tslint.no-invalid-this.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-invalid-this
Disallows using the this
keyword outside of classes.
Rationale
See the rule’s author’s rationale here.
Config
One argument may be optionally provided:
check-function-in-method
disallows using the this
keyword in functions within class methods.
Examples
"no-invalid-this": true
"no-invalid-this": [true, "check-function-in-method"]
Schema
{
"type": "list",
"listType": {
"type": "enum",
"enumValues": [
"check-function-in-method"
]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy