-
Notifications
You must be signed in to change notification settings - Fork 192
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
JS style guide enforcement #813
Comments
Whichever one we pick, we can agree on a set of a few common rules and go from there (and then perhaps send a single fixup PR to catch existing violations) |
jshint is already enforcing some rules, no? |
Yeah, it does "these things will probably be bugs" rules. I'm also interested in having a consistent codebase in terms of style. |
It's nagging me about "un-necessary semicolon"s now and then. Sounds like a style issue ;) |
OK. But it doesn't do the other interesting things that this issue is about. I'll mess with jscs or eslint in the coming days and send a PR. |
eslint is a good choice, I use it on a lot of project. Plus I made this https://github.com/stylelint/stylelint-config-cssrecipes for css, so maybe wen can use it too. But yeah, it's a good idea to have a consistant code base.. |
+1 |
@miketaylr if you want we can create a new branch and try to add those linter ? |
@magsout let's go ahead and open a new issue for CSS linting, I don't think they need to be done in the same branch. |
We don't really have a style guide, and writing one seems like a lot of work.
It would be cool to hook up some tooling to do the checks for us:
http://eslint.org/docs/rules/ (eslint can also replace jshint)
OR
http://jscs.info/ (to be used in conjunction with jshint).
Mainly I'd like us to have consistent use of quoting and whitespace, and not have to think about these boring things during code review.
Thoughts? @magsout @hallvors
The text was updated successfully, but these errors were encountered: