The best way to contribute to PEG.js is by using it and giving back useful feedback, reporting discovered bugs or requesting missing features.
You can also contribute code, but be advised that many patches end up being rejected, usually because the change doesn’t fit the project or because of various implementation issues. In almost all cases it’s best to get in touch first before sending a patch.
In the report, please describe:
- Steps to reproduce the problem
- Expected result(s)
- Actual result(s)
In most cases, it’s also useful to include a minimal example (grammar + input) reproducing the problem.
In the request, please describe:
- How the feature should work
- Use case(s) behind it
Contribute code using GitHub pull requests. For non-trivial changes, first file a corresponding bug report or feature request. This will ensure the problem is separated from a solution.
Split your change into atomic commits with descriptive messages adhering to these conventions. Have a look in the commit history to see good examples.
When appropriate, add documentation and tests.
Before submitting, make sure your change passes the tests (
gulp test) and
ESLint checks (