Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign updisable no-multi-str #532
Comments
This comment has been minimized.
This comment has been minimized.
|
This is preferred: foobar = 'This is a multiline \n' +
'string that is allowed by the \n' +
'rules' |
feross
closed this
May 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Ugh. Mind telling me why? |
This comment has been minimized.
This comment has been minimized.
|
https://github.com/feross/standard#i-disagree-with-rule-x-can-you-change-it
|
This comment has been minimized.
This comment has been minimized.
|
I agree wholeheartedly with the philosophy of the standard. I'm genuinely curious about the rationale for this one. |
This comment has been minimized.
This comment has been minimized.
|
They're exactly equivalent, so we prefer having only one way to do things. |
This comment has been minimized.
This comment has been minimized.
|
Got it, thank you. |
This comment has been minimized.
This comment has been minimized.
|
Also, if the js runtime youre using supports multiline strings, then it On Fri, May 27, 2016, 10:40 AM David Braun notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
|
THANK YOU! You just made my night! |
NodeGuy commentedMay 26, 2016
•
edited
I'm being warned that multiline support is limited to browsers supporting ES5 only. (no-multi-str)
Multiline strings aren't prohibited by the rules here: https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
I don't imagine we want the warnings to prevent usage of features found only in ES5 and above. Let's disable this warning.
Standard version is
7.1.1.