Skip to content

Commit 691cad5

Browse files
committed
chore(husky): migrate to v10+ config, remove legacy hook, update generator output
1 parent b569e61 commit 691cad5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx lint-staged
1+
npx lint-staged

src/configs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ export default tseslint.config(
8787
},
8888
husky: {
8989
deps: ['husky', 'lint-staged'],
90-
scripts: { prepare: 'husky install' },
90+
scripts: { prepare: 'echo "Husky is managed automatically"' },
9191
lintStaged: {
9292
'*.ts': ['eslint --fix', 'prettier --write'],
9393
'*.json': ['prettier --write'],
9494
},
95-
preCommitHook: `#!/bin/sh\n. $(dirname "$0")/_/husky.sh\nnpx lint-staged\n`,
95+
preCommitHook: 'npx lint-staged\n',
9696
},
9797
} as const;

0 commit comments

Comments
 (0)