Found a bug? Report it here!
Have an idea? Add it here!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Lint JavaScript files (
npm install -g grunt && npm install && grunt test
) - Commit your changes (
git commit -am "Added some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- 2 spaces (no tabs)
- Every child should have one more indent than parent
- Double quotes (no single quotes)
- No trailing slash at self-closing elements (e.g.
<hr>
, not<hr />
) - Use CDNs and HTTPS for third-party JS when possible
- 2 spaces (no tabs)
- Write semicolons
- Single quotes (no double quotes)
- Don't write markup with JavaScript when possible
More info in .jshintrc
and .jscs.json
.