diff --git a/.husky/pre-commit b/.husky/pre-commit index 37c90ec..0d4e3a9 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,3 +1 @@ -export PATH="$PATH:$(pnpm bin)" -pnpm biome lint -pnpm biome format \ No newline at end of file +pnpm dlx lint-staged \ No newline at end of file diff --git a/package.json b/package.json index 636438a..6fb750b 100644 --- a/package.json +++ b/package.json @@ -51,5 +51,11 @@ "sql.js": "^1.12.0", "tailwind-merge": "^2.5.5", "tailwindcss-animate": "^1.0.7" + }, + "lint-staged": { + "*.{ts,tsx}": [ + "biome lint", + "biome format" + ] } }