Requires all quote marks to be either the supplied value, or consistent if true
Types: Boolean
, String
or Object
Values:
"\""
: all strings require double quotes"'"
: all strings require single quotestrue
: all strings require the quote mark first encountered in the source codeObject
:escape
: allow the "other" quote mark to be used, but only to avoid having to escapemark
: the same effect as the non-object valuesignoreJSX
: ignore JSX nodesJSHint: quotmark
"validateQuoteMarks": "\""
"validateQuoteMarks": { "mark": "\"", "escape": true }
{ "mark": "\"", "escape": true }
var x = "x";
var y = '"x"';
{ "mark": "\"", "escape": true }
var x = "x";
var y = 'x';
{ "mark": "'", "escape": true, "ignoreJSX": true }
<div className="flex-card__header">{this.props.children}</div>;
"\""
or mode true
var x = "x";
"'"
or mode true
var x = 'x';
true
var x = "x", y = 'y';