
org.sonar.l10n.javascript.rules.javascript.SingleQuote.html Maven / Gradle / Ivy
For consistency single-quotes (') are preferred to double-quotes (").
This is helpful when creating strings that include HTML.
The following code snippet illustrates this rule :
var firstParameter = "something"; // Non-Compliant
var secondParameter = 'somethingElse'; // Compliant
© 2015 - 2025 Weber Informatics LLC | Privacy Policy