Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JS Bin Warning: Bad escapement of EOL. Use option multistr if needed

That is a warning stemming from snippets like:

a="hello\
world"

Apparently JsBin does not support the line continuation character unless a specific option is set.

How to set the mentioned multi-string option?

Thanks.

like image 968
antonio Avatar asked Dec 27 '12 11:12

antonio


1 Answers

Don't know if you need this anymore, but use: /*jshint multistr: true */

Example:

/*jshint multistr: true */
var data = "multiline \
text \
here.";

It will simply remove warning.

like image 189
user1548072 Avatar answered Nov 19 '22 09:11

user1548072