
rules.tslint.quotemark.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: quotemark
Requires single or double quotes for string literals.
Config
Five arguments may be optionally provided:
"single"
enforces single quotes.
"double"
enforces double quotes.
"jsx-single"
enforces single quotes for JSX attributes.
"jsx-double"
enforces double quotes for JSX attributes.
"avoid-escape"
allows you to use the “other” quotemark in cases where escaping would normally be required.
For example, [true, "double", "avoid-escape"]
would not report a failure on the string literal 'Hello "World"'
.
Examples
"quotemark": [true, "single", "avoid-escape"]
"quotemark": [true, "single", "jsx-double"]
Schema
{
"type": "list",
"listType": {
"type": "enum",
"enumValues": [
"single",
"double",
"jsx-single",
"jsx-double",
"avoid-escape"
]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy