One of the great things about open source projects is that anyone can contribute code. To help you in that process, there are several things that you should keep in mind.
If you want to submit code, please use a GitHub pull request. This is the fastest way for us to evaluate your code and to merge it into the code base. Please don’t file an issue with snippets of code. Doing so means that we need to manually merge the changes in and update any appropriate tests. That decreases the likelihood that your code is going to get included in a timely manner. Please use pull requests.
We want to accept your contribution. Following these guidelines helps to create a patch that we want to accept:
npm test to verify your changes before submitting a pull request.Once you’ve written a rule, you can decide whether the rule is generic enough to be included in ESLint or if it’s specific to your own use case. If you decide to submit your rule via a pull request, there are some things to keep in mind:
Keep in mind that not all rules will be accepted for the main distribution. You may also request that your rule by on by default but we may accept it as off by default.
All pull requests are sent through Travis CI to verify that no tests are broken. If the Travis build fails, it will show up on the pull request. We cannot accept any code that fails in Travis, so if this happens, make fixes and update the pull request to trigger another build.