The following process will get you all setup with a new project.
The objective is to have prettier
setup from the get-go so that anything that's staged will be checked and fixed according to your defined styles. This depends on pretty-quick
as well as husky
.
One thing you could do would be to create a .prettierignore
file and add specific directories (or even the entire project!) and incrementally add in directories and/or single files. By doing this, you don't need to deal with your git history getting messed up, certain parts of larger codebases can be completely ignored (but why?), and certain parts can be updated by their respective maintainers.
If you are adding to an existing project, and aren't concerned about your git history, you can follow along Fix existing codebase to add and then you will need to "