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

Avoids misleading IFs #37

Closed
wants to merge 1 commit into from
Closed

Avoids misleading IFs #37

wants to merge 1 commit into from

Conversation

olistik
Copy link

@olistik olistik commented Nov 8, 2017

Single line IF statement can be misleading.

See https://eslint.org/docs/rules/curly:

[..] it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity.

Single line IF statement can be misleading.

See https://eslint.org/docs/rules/curly:

> [..] it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity.
@marcofugaro
Copy link
Contributor

We decided not to implement this since some of us like the one line return 🙂

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

Successfully merging this pull request may close these issues.

2 participants