Skip to content

Commit 4fef0dd

Browse files
threealclaude
andauthored
remove Lefthook from development dependencies (#1084)
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b9ce878 commit 4fef0dd

4 files changed

Lines changed: 7 additions & 102 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ The development workflow uses **jiti** to run `src/bin.ts` directly without a co
4646

4747
- **ESLint** uses flat config (`eslint.config.ts`) with `typescript-eslint` strict + stylistic type-checked rules.
4848
- **Prettier** uses `prettier-plugin-organize-imports` — import order is auto-managed.
49-
- **Lefthook** runs pre-commit hooks (type-check → format → lint) with `fail_on_changes: always`, so hooks can auto-fix files but will abort the commit if any file changed, requiring a re-stage.
49+
- **Lefthook** is an external tool (not a dev dependency) that manages Git hooks. It must be installed independently and set up with `lefthook install`. Pre-commit hooks run type-check → format → lint with `fail_on_changes: always`, so hooks can auto-fix files but will abort the commit if any file changed, requiring a re-stage.
5050
- **Vitest** requires 100% code coverage (lines, functions, branches, statements) enforced via the `coverage` threshold in `vitest.config.ts`.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ pnpm install
4545

4646
For more information on pnpm, including adding dependencies or running tools, refer to [this documentation](https://pnpm.io/pnpm-cli).
4747

48+
This template also uses [Lefthook](https://lefthook.dev/) to manage Git hooks. Lefthook is an external tool that must be installed independently — refer to [this guide](https://lefthook.dev/installation/) for installation instructions. Once installed, set up the Git hooks with:
49+
50+
```sh
51+
lefthook install
52+
```
53+
4854
### Developing the Library
4955

5056
This template provides two components: the library itself ([`src/lib.ts`](./src/lib.ts)) and an executable entry point ([`src/bin.ts`](./src/bin.ts)). Write code according to your project requirements. If you're new to [TypeScript](https://www.typescriptlang.org/), refer to [this documentation](https://www.typescriptlang.org/docs/) for guidance.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"@vitest/coverage-v8": "^4.0.15",
3737
"eslint": "^10.3.0",
3838
"jiti": "^2.7.0",
39-
"lefthook": "^2.1.6",
4039
"prettier": "^3.8.3",
4140
"prettier-plugin-organize-imports": "^4.3.0",
4241
"typescript": "^6.0.3",

pnpm-lock.yaml

Lines changed: 0 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)