Quote style for string literals

EditorConfig key: js-quote-style

Quote style for string literals

js-quote-style

Whether string literals are delimited with apostrophes or quotation marks.

Default value:

unset

Possible values:

  • unset
  • singlequoted
  • single_quoted
  • doublequoted
  • double_quoted

Examples

unset
singlequoted
var s = 'hello';
single_quoted
var s = 'hello';
doublequoted
var s = "hello";
double_quoted
var s = "hello";