website
website copied to clipboard
Considering using Prettier and research on setup via CL and Plugin
Overview
We need to consider implementing a solution like Prettier to prevent developers from pushing additional file changes due to formatting preferences in their IDE. This helps to reduce 50+ line changes when a simple alt text is changed due to a developer’s auto-format save.
Details
The discussion from Thursday (02-23-23) Office hours, considering the use of Prettier (opinionated code formatter) on website repo because many devs use it and have to remember to disable Prettier or it is forgotten, especially by just onboarded devs. The consensus was there is a need to research what that looks like and if it would be beneficial/easy.
Action Items
- [ ] Invite other devs to comment on issue
- questions to ask:
- Do you use it?
- Do you like it?
- If you don't use it, why don't you?
- questions to ask:
- [ ] Research the process use and install Prettier locally -per project.
- [ ] Research the process of using Prettier via editor.
- [ ] Present and discuss with Website team.
Reservations & Concerns
- What if people don't want to install prettier?
- How does this impact PR reviews
- What would we need to do to existing code in the repo