-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Request] Consider adding a .jshintrc or .eslintrc to V2 for contributors #13
Comments
Hi! I like JSHint. About jsbeautifier, I knew the website, but I didn't know there was a npm module. |
Well I was not sure so I checked: I use default JSHint configuration on v2 for now. |
Sure thing. I've just recently done this with Gulp, but I'm pretty sure it won't be any harder with Grunt. |
I used Grunt on v1, but I choose to switch to Gulp for v2, so it'll be on Gulp ;) |
haha, great! I'd be happy to help you get browserify and jshint or eslint While we're talking sweeping build suite changes, have you considered any here's an example suite of unit tests for a little module I wrote a while [1] http://visionmedia.github.io/mocha/ On Fri, Jul 11, 2014 at 5:28 PM, David Sferruzza [email protected]
Screw the environment. Please print this email immediately. And then burn |
I did it: 09e8799 |
One of the simplest ways to help a larger library stay readable is to make sure its whole codebase is written in a consistent style. Tools like jshint/eslint and jsbeautifier are a way to smoke test various aspects of the codebase before a PR even occurs, freeing the maintainer to focus more on the code's behavior and less on the way the contributor writes. JSHint in particular is also excellent at catching subtle errors ranging from typos to unsafe assumptions.
I've found that jsbeautifier is somewhat intrusive what it considers right and wrong, but jshint/eslint is very configurable and tends not to be pleasant to work with. I would recommend going with at least one or the other of jshint/eslint to help guide contributors on how to write their code for the project.
The text was updated successfully, but these errors were encountered: