fix: updated husky pre-commit hook to run linting fix, tests, test-coverage, and formatting

This commit is contained in:
StevanFreeborn
2023-02-03 11:21:46 -06:00
parent 22ba4520ef
commit 88197d71b8
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
npm run format-staged npm run lint-fix-staged
npm run tests
npm run test-coverage
npm run format-staged
+1
View File
@@ -6,6 +6,7 @@
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts .", "lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
"lint-fix-staged": "eslint --ignore-path .eslintignore --ext .js,.ts . --fix",
"format-staged": "pretty-quick --staged", "format-staged": "pretty-quick --staged",
"format": "pretty-quick", "format": "pretty-quick",
"build": "npm run tests && npm run format && tsc", "build": "npm run tests && npm run format && tsc",