diff --git a/.husky/pre-commit b/.husky/pre-commit index 354655c..d24fdfc 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npm run lint:fix -npm run prettier:fix +npx lint-staged diff --git a/package.json b/package.json index 9feb288..846d8ec 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ }, "lint-staged": { "*.{js,ts,tsx}": [ - "npm run fix" + "npm run fix && npm run type" ], "*.{md,json,yml}": [ "prettier --write"