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
Allow line breaking before && or || #60
Comments
This may cause problems like semi colon insertion and old javascript parsers breaking. Please check a large range of browsers. |
You can use |
@Raynos are there seriously any parser that deviate that much from the spec? |
👍 |
This error is still in 2.7.0. I added Line 90 in e47168f
|
@Raynos : Can you recommend a resource for which JS parsers might meet this failure?
|
Why was this closed? Is it considered a duplicate of #735? |
For multiple line conditions it might be more readable if the && and || are at the beginning of the line. JSHint however does not allow this, resulting in the error "Bad line breaking before '&&'."
Example: http://jsfiddle.net/AkeF3/1/
The text was updated successfully, but these errors were encountered: