diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 18:23:00 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 18:23:00 +0300 |
| commit | 78461649639dba10f9ade8b1dba9e8f2c69a4144 (patch) | |
| tree | fc89a83ecc5c8500c77ebc359fd7b7b2b42f085b /package.json | |
| parent | 0df973de7b554008383a23fd4fc2a0b8e1401b37 (diff) | |
Add husky pre-commit
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json index 6bd0020..d5f4237 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "format": "pnpm run format:code && pnpm run format:imports", "format:code": "biome format . --write && prettier -w \"**/*\" \"!**/*.{md,mdx}\" --ignore-unknown --cache", "format:imports": "biome check --formatter-enabled=false --write", - "check": "astro check" + "check": "astro check", + "prepare": "husky", + "test:pre-commit": ".husky/pre-commit" }, "dependencies": { "@astrojs/markdown-remark": "^6.3.2", @@ -54,6 +56,7 @@ "@types/mdast": "^4.0.4", "@types/turndown": "^5.0.5", "autoprefixer": "^10.4.21", + "husky": "^9.1.7", "pagefind": "^1.3.0", "prettier": "^3.6.2", "prettier-plugin-astro": "0.14.1", |
