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

1

9

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.

Encasement answered 27/12, 2012 at 11:35 Comment(0)
I
29

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.

Ilona answered 25/7, 2013 at 15:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.