
When setting up Prettier it is important to configure it per-project.



You can find the sample project with different Prettier settings configured per-subfolder at bahmutov/prettier-config-example. This blog post shows how to configure Prettier to work from command line, from VSCode and from Git hooks. This allows you to get a consistent formatting without thinking or arguing about it. You can configure JavaScript code auto-formatting with Prettier to work per-project.
