Broken by husky v5/6
Describe the bug
In the current configuration, the pre-commit hook doesn't work if version 5 or above of husky is installed
To Reproduce Steps to reproduce the behavior:
- ng new an app
- run the schematic
- create a scss file that has text on the last line
- commit
Expected behavior Prettier should add an empty line to the end of the scss file
Actual Prettier does not run.
Screenshots If applicable, add screenshots to help explain your problem.
Was able to fix by installing husky@4 (installed v4.3.8)
I noticed that the schematic now installs v4.3.8 of husky but changes package.json to have "latest" as the version for all the packages this schematic installs.
So if developer A runs the schematic and pushes their changes, then developer B pulls the latest, and runs npm install, they will get the incorrect version of husky and the problem will persist.