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

adopting a style guide #227

Closed
wants to merge 2 commits into from
Closed

adopting a style guide #227

wants to merge 2 commits into from

Conversation

allain
Copy link
Contributor

@allain allain commented Oct 7, 2016

I've added support for running the code through the google javascript style guide, it seems that the code almost conforms to the guide already. If the pull is accepted, I'll run through the warnings and fix them all.

In order to see where the code doesn't conform to the styleguide:

npm run lint

To automatically clean up code where it can be:

npm run lint-fix

eslint supports changing defaults (tabs vs spaces), but the default for the google stylesheet is 2 spaces. I looked at the code and there were way more uses of spaces than tabs.

Personally, I don't have a strong opinion, except that the format should be consistent so that pull requests don't get polluted by irrelevant formatting.

…retty well)

added `npm run lint` and `npm run lint-fix` which automatically fixes what it can
@allain allain closed this Oct 7, 2016
@amark
Copy link
Owner

amark commented Oct 7, 2016

0.5 tests are failing anyways (not you) so no worries.

I noticed you already closed these pull requests. Not sure why - but I'm fine with that, because I generally dislike style-guides. Although your last point is actually the most convincing thing I've ever read on the issue (prevent git commit diffs from formatting problems).

Anyways, not sure why you closed these but I'm fine with leaving them closed.

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