Many changes, including bug fixes and documentation improvements, can be implemented and reviewed via the normal GitHub pull request workflow.
However, some changes are "substantial", and we ask that these be put through a bit of a design process and produce a consensus among the ESLint Technical Steering Committee (TSC).
The "RFC" (request for comments) process is intended to provide a consistent and controlled path for new features to enter the project.
You need to follow this process if you intend to make "substantial" changes to any part of the ESLint project or its documentation. What constitutes a "substantial" change is evolving based on community norms, but may include the following.
- A new ESLint command line option.
- A new feature of ESLint core.
- A refactoring of existing ESLint core functionality.
- Any breaking change.
In addition to these, the TSC may request an RFC for any other change that it deems "substantial" based on the size or scope of the request.
If you submit a pull request to implement a new feature without going through the RFC process, it may be closed with a polite request to submit an RFC first.
It's often helpful to get feedback on your concept before diving into the level of API design detail required for an RFC. A good first step is to contact the mailing list or chatroom to get thoughts from the community and the ESLint team before proceeding.
To submit a new RFC, follow these steps:
- Fork the RFC repo.
- Create a directory inside of the
designs
directory. The directory name should begin with the year and include a meaningful description, such asdesigns/2018-typescript-support
. - Copy the appropriate template file from the
templates
directory into the appropriatedesigns
subdirectory (such asdesigns/2018-typescript-support/README.md
). Be sure to name your fileREADME.md
so it is easily viewable in the GitHub interface. - If you want to include images in your RFC, place them in the same directory as the
README.md
. - Fill in the RFC. Please fill in every section in the template with as much detail as possible.
- Submit a pull request to this repo with all of your files. This begins the approval process (detailed below).
- RFCs that are accepted will be merged directly into this repo; RFCs that are not accepted will have their pull requests closed without merging.
When an RFC is submitted, it goes through the following process:
- Initial commenting period (21 days minimum) - the community and ESLint team are invited to provide feedback on the proposal. During this period, you should expect to update your RFC based on the feedback provided. Very few RFCs are ready for approval without edits, so this period is important for fine-tuning ideas and building consensus. (A PR in the initial commenting period has the Initial Commenting label applied.) The initial commenting period must last at least 21 days to allow the team and community enough time to comment. The TSC may decide to reject the RFC without promoting it to the final commenting period.
- Final commenting period (7 days) - when all feedback has been addressed, the pull request author requests a final commenting period where ESLint TSC members provide their final feedback and either approve of the pull request or state their disagreement. (A PR in the final commenting period has the Final Commenting label applied.) ESLint TSC members are notified through GitHub when an RFC has passed into the final commenting period.
- Approval and Merge - if consensus has been reached on approving the RFC, the pull request will be merged. If consensus is not reached on the pull request then the RFC will be discussed at the next TSC meeting to determine whether or not to move forward.
Once an RFC is merged into this repo, then the authors may implement it and submit a pull request to the appropriate ESLint repo without opening an issue. Note that the implementation still needs to be reviewed separate from the RFC, so you should expect more feedback and iteration.
If the RFC authors choose not to implement the RFC, then the RFC may be implemented by anyone. There is no guarantee that RFCs not implemented by their author will be implemented by the ESLint team.
Changes to the design during implementation should be reflected by updating the related RFC. The goal is to have RFCs to look back on to understand the motivation and design of shipped ESLint features.
The author of an RFC is not obligated to implement it. Of course, the RFC author (like any other developer) is welcome to post an implementation for review after the RFC has been accepted.
When a pull request has implemented an RFC, the RFC should be updated with a link to the PR implementing it.
Thanks to the Ember RFC process for the inspiration for ESLint's RFC process.