pre commit (#1119)
<!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds an explicit Husky pre-commit setup to run the formatter and linter before each commit. Replaces the auto-run prepare hook with a manual npm run init-precommit command. - **Migration** - Run npm run init-precommit once in your repo to install the pre-commit hook. <!-- End of auto-generated description by cubic. -->
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
"test:watch": "vitest",
|
||||
"test:ui": "vitest --ui",
|
||||
"extract-codebase": "ts-node scripts/extract-codebase.ts",
|
||||
"prepare": "husky install",
|
||||
"init-precommit": "husky",
|
||||
"pre:e2e": "cross-env E2E_TEST_BUILD=true npm run package",
|
||||
"e2e": "playwright test",
|
||||
"e2e:shard": "playwright test --shard"
|
||||
|
||||
Reference in New Issue
Block a user