Skip to content

Commit 91bef85

Browse files
committedFeb 8, 2024
Add/move link to commit hooks (#500)
1 parent 78e406c commit 91bef85

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎packages/knip/src/plugins/husky/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { getDependenciesFromScripts, hasDependency, loadFile } from '../../util/
44
import type { IsPluginEnabledCallback, GenericPluginCallback } from '../../types/plugins.js';
55

66
// https://typicode.github.io/husky
7-
// https://git-scm.com/docs/githooks
87

98
const NAME = 'husky';
109

‎packages/knip/src/util/git.ts

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { execSync } from 'child_process';
22
import { join } from './path.js';
33

44
// TODO More hooks exists, but is it worth adding all of them?
5+
// https://git-scm.com/docs/githooks
6+
// https://github.com/fisker/git-hooks-list/blob/main/index.json
7+
58
const hookFileNames = [
69
`prepare-commit-msg`,
710
`commit-msg`,

0 commit comments

Comments
 (0)
Please sign in to comment.