diff --git a/.husky/pre-commit b/.husky/pre-commit index 02513ea..dc399ad 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,7 @@ #!/usr/bin/env 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 \ No newline at end of file diff --git a/package.json b/package.json index 58833d7..f7222f5 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "types": "dist/index.d.ts", "scripts": { "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": "pretty-quick", "build": "npm run tests && npm run format && tsc",