This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Coding standards #181
Comments
related #184 |
Thanks, @attiks, I think we should also codify these in an editorconfig file if possible. My immediate reaction is:
Standing on the shoulders of giants, we could stand on the shoulders of giants a bit and adopt the jQuery style guide or something similar. |
I'll work on it, will try to create a PR tonight, I'll update .jshintrc accordingly |
Agreed on all fronts. My one nitpick array = [ "*" ];
array = [ a, b ];
foo( arg );
foo( "string", object );
foo( options, object[ property ] );
foo( node, "property", 2 ); I wouldn't put spaces inside the parens like this. Drupal style guide prohibits this extra spacing. My editor automatically removes trailing whitespace. I convert tabs to spaces manually. Let's just try to keep coding standards changes isolated and not part of other commits so that diffs with behavior changes are clean. |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I saw you're using jshint to check code style, but I also saw a mix of tabs and spaces for indentation, and I was wondering if there are some coding guidelines.
To decide:
The text was updated successfully, but these errors were encountered: