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

Proposal: Not too much semicolons #797

Closed
tunnckoCore opened this issue Feb 21, 2017 · 3 comments

Comments

@tunnckoCore
Copy link

commented Feb 21, 2017

Digging more and more in ESLint rules, i found some good ones which enforces good style and more readable code. This issue is for no-extra-semi rule - fixable.

Suggested configuration.

{
  "no-extra-semi": "error"
}

Why we will need such thing, when we are okey to completely don't use semicolons, except in some places, where we just need one semicolon, no more.

Loops like that, won't be affected by this rule

let i = 0
for (;;i++) {
  console.log(i)
}

but just these

let i = 0;;;

for (;;i++) {
  console.log(i);;;
}
@feross

This comment has been minimized.

Copy link
Member

commented Feb 21, 2017

Duplicate: #786 Please use search before creating new issues.

@feross feross closed this Feb 21, 2017

@tunnckoCore

This comment has been minimized.

Copy link
Author

commented Feb 21, 2017

Damn sorry! I seen that issue and read it before i gone to sleep last night 😱 Sleep is a bad thing! 🚀

@feross

This comment has been minimized.

Copy link
Member

commented Feb 21, 2017

No worries!

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.