Disallow Multiline Strings (no-multi-str)
var x = "Line 1 \ Line 2";
This rule is aimed at preventing the use of multiline strings.
The following generates a warning:
/*eslint no-multi-str: 2*/ /*error Multiline support is limited to browsers supporting ES5 only.*/ var x = "Line 1 \ Line 2";
The following does not generate a warning:
/*eslint no-multi-str: 2*/ var x = "Line 1\n" + "Line 2";
This rule was introduced in ESLint 0.0.9.