Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiline conditions problem #2769

Open
SailorMax opened this issue Nov 17, 2015 · 3 comments
Open

multiline conditions problem #2769

SailorMax opened this issue Nov 17, 2015 · 3 comments

Comments

@SailorMax
Copy link

Sample code:
if (value > 10
|| value < 5)
{}

jshint said: Bad line breaking before '||'. This code work well in browsers. Why jshint think this is error?

same problem with:
var name = "part1"
+ "-part2"
+ "-part3";

@nicolo-ribaudo
Copy link
Contributor

You should use the laxbreak option.

@SailorMax
Copy link
Author

Warning This option has been deprecated and will be removed in the next major release of JSHint.

This is the reason why I do not use it.

@nicolo-ribaudo
Copy link
Contributor

Related - #2625

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants