Basic steps for adding Prettier to a project and setting up a pre-commit hook when not using any other linter. Most of these steps can be found in the docs and through other links in the docs.
- Install prettier:
$ npm install --save-dev --save-exact prettier
- Create an empty config file to let tools know you're using Prettier: