Merge pull request #2214 from balena-os/fix-husky

Fix husky config for automatic linting on commit
This commit is contained in:
Page- 2023-10-16 16:42:31 +01:00 committed by GitHub
commit ab5aa54448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no lint-staged

View File

@ -139,11 +139,6 @@
"winston": "^3.3.3",
"yargs": "^15.4.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"versionist": {
"publishedAt": "2023-10-16T13:50:18.745Z"
}