rules.scsslint.StringQuotes.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-scss Show documentation
Show all versions of sonar-web-frontend-scss Show documentation
Consume reports generated by scsslint for code quality. Also consume reports for code duplication (either simian or cpd). The information generated by reports are added in Sonar
Details
String literals should be written with single quotes unless using double quotes
would save on escape characters.
Bad: double quotes
content: "hello";
Good: single quotes
content: 'hello';
Good: double quotes prevent the need for escaping single quotes
content: "'hello'";
Single quotes are easier to type by virtue of not requiring the Shift
key on
most popular keyboard layouts.
Configuration Option
Description
style
single_quotes
or double_quotes
(default single_quotes
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy