Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

allain added 2 commits October 6, 2016 21:17
…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