This adds prettier as a dependency of the prettier pre-commit hook.
Turns out that the prettier configuration wants to be exported as a module, so the additional-dependencies in the pre-commit config don't get picked up.
I've declared explicit versions of Prettier for the pre-commit hook and added a devDependencies key in the package.json which was missing.
Summary
This adds prettier as a dependency of the prettier pre-commit hook.
Turns out that the prettier configuration wants to be exported as a module, so the
additional-dependencies
in the pre-commit config don't get picked up.I've declared explicit versions of Prettier for the pre-commit hook and added a
devDependencies
key in thepackage.json
which was missing.Related issue :
Closed #640