Skip to content

Commit 95b7eaa

Browse files
chore: fix knip warning
1 parent 6a3a07e commit 95b7eaa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

knip.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
3-
"entry": ["src/index.ts!"],
3+
"entry": ["src/index.ts!", "bin/sync.mts"],
44
"project": ["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"],
55
}

lefthook.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ pre-commit:
55
commands:
66
prettier:
77
glob: "*.{js,ts,jsx,tsx,mjs,mts,cjs,cts,json,yml,yaml,md}"
8-
run: npx prettier --write {staged_files}
8+
run: yarn prettier --write {staged_files}
99
stage_fixed: true
1010
eslint:
1111
glob: "*.{js,ts,jsx,tsx,mjs,mts,cjs,cts}"
12-
run: npx eslint --fix {staged_files}
12+
run: yarn eslint --fix {staged_files}
1313
stage_fixed: true
1414
typescript-build:
1515
glob: "*.{js,ts,jsx,tsx,mjs,mts,cjs,cts}"
16-
run: npm run typecheck
16+
run: yarn run typecheck
17+
knip:
18+
run: yarn knip

0 commit comments

Comments
 (0)