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

rules.scsslint.StringQuotes.html Maven / Gradle / Ivy

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 - 2024 Weber Informatics LLC | Privacy Policy