Fix Husky pre-commit

By upgrading to version 7, we now ensure that NPM/Yarn will run
the `prepare` script and appropriately install Husky. This also
migrates us to the `pre-commit` hook as a separate file, rather
than as part of the `package.json` definition.
This commit is contained in:
Tim van der Lippe
2021-10-20 12:43:02 +01:00
parent e3f840c6da
commit 129b925098
3 changed files with 17 additions and 266 deletions

1
.husky/pre-commit Executable file
View File

@@ -0,0 +1 @@
npx lint-staged