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

JS styleguide: Replacement for onevar #128

Open
jzaefferer opened this issue Sep 21, 2015 · 1 comment
Open

JS styleguide: Replacement for onevar #128

jzaefferer opened this issue Sep 21, 2015 · 1 comment

Comments

@jzaefferer
Copy link
Member

As @timmywil commented on #105 (comment):

We need a replacement for this and I think it should be for all projects. I'd like to be able to enforce some value for http://jscs.info/rule/requireMultipleVarDecl.html or http://jscs.info/rule/disallowMultipleVarDecl.html and that should probably be included in the jquery preset.

Airbnb has decent rules for variables: https://github.com/airbnb/javascript/tree/master/es5#variables
ES6 variant: https://github.com/airbnb/javascript#variables

Are there other references we should consider? @timmywil would you be willing to put a draft together?

@arthurvr
Copy link
Member

I'd personally prefer to put on the disallowMultipleVarDecl option 👍

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

No branches or pull requests

2 participants