Good news everyone, JSHint is open source! Our source code is hosted on GitHub.

How to contribute

The best way to make sure your issue is addressed is to submit a patch. We accept patches through all mediums: pull requests, email, issue comment, tweet with a link to a snippet, graffiti outside of Anton’s apartment, etc.

However, before sending a patch, please make sure that the following applies:

Bug Bounties

Some bugs are so important to us, we will pay you if you fix them! Go to our page on BountySource to see which bugs have bounties behind them.

Really want to have something fixed but don’t have time? You can add your own bounty to any JSHint bug and make it more attractive for potential contributors!

Rule: A bug is considered fixed only after it has been merged into the master branch of the main JSHint repository.

Development Environment

JSHint has a number of dependencies specified in its package.json file. To install them just run the following command from within your repo directory:

$ npm install

After that you will be able to run the edge version of JSHint using bin/jshint or build the release bundles using node make.js build.

Coding Style

This section describes our coding style guide. You might not agree with it and that’s fine but if you’re going to send us patches treat this guide as a law.

Our main rule is simple:

All code in any code-base should look like a single person typed it, no matter how many people contributed. —idiomatic.js

Whitespace:

Variables:

Comments:

Misc:

Today we use JSHint’s white:true to enforce some of these rules. Eventually we’ll switch to JSHint Next style enforcing component. But it’s not ready yet.

License

Copyright 2013 Anton Kovalyov (http://jshint.com)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.