The prettier pre-commit hook which formats code requires the prettier executable to be present. Typically this can be run retrieving prettier on the fly npx prettier but pre-commit doesn't know about that.
So, we need to declare it as additional_dependencies in .pre-commit-config.yaml
Add prettier as extra dependency of pre-commit
The
prettier
pre-commit hook which formats code requires the prettier executable to be present. Typically this can be run retrieving prettier on the flynpx prettier
but pre-commit doesn't know about that.So, we need to declare it as
additional_dependencies
in.pre-commit-config.yaml