diff --git a/package.json b/package.json index 49f80163fd1343147bd099b8ba62aacb7738f754..1a4b2aed0368959668db45ccfa39b00624dca367 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare", - "lint": "eslint . --fix" + "prepare": "husky install", + "lint": "eslint .", + "lint:fix": "eslint . --fix" }, "dependencies": { "@formkit/auto-animate": "^0.8.2", @@ -37,5 +39,10 @@ "husky": "^9.0.11", "lint-staged": "^15.2.6", "vite-plugin-eslint2": "^4.4.0" + }, + "husky": { + "hooks": { + "pre-commit": ["npm run prepare"] + } } }