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

Let's choose a javascript spec and set some options in the linter #37

Closed
mapsam opened this issue Apr 14, 2015 · 4 comments
Closed

Let's choose a javascript spec and set some options in the linter #37

mapsam opened this issue Apr 14, 2015 · 4 comments
Labels

Comments

@mapsam
Copy link
Member

mapsam commented Apr 14, 2015

such as 2 space indents, no semi-colons, for/length prioritized over for/in, etc.

@mapsam mapsam changed the title Let's choose a javascript spec and styleguide, then stick to it Let's choose a javascript spec and set some options in the linter Apr 14, 2015
@mapsam
Copy link
Member Author

mapsam commented Apr 14, 2015

For loops

Use for ( x in y ) { ... } when working with objects.
Use for (var x; x < y.length; x++ ) { ... } when working with arrays.

Thoughts?

@mapsam
Copy link
Member Author

mapsam commented Apr 24, 2015

Eh, this seems overly detailed for now.

@mapsam mapsam closed this as completed Apr 24, 2015
@alukach
Copy link
Member

alukach commented Apr 24, 2015

Yeah, maybe we can just say that we aim to use the Google JavaScript Style Guide? I find that Google's guides are usually pretty complete and agreeable. AirBnB's Guide is popular but pretty short (doesn't cover that for-loops topic, for example).

@mapsam
Copy link
Member Author

mapsam commented Apr 24, 2015

👍

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

No branches or pull requests

2 participants