fix: updated husky pre-commit hook to run linting fix, tests, test-coverage, and formatting
This commit is contained in:
+4
-1
@@ -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
|
||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user