Skip to content

Commit 274c998

Browse files
committed
chore: add pre-commit hook to run lint-staged (Prettier)
Executive summary: - Added husky and lint-staged devDependencies and config in package.json. - Added npm scripts: "lint-staged" and "prepare" to ensure husky is installed. - Created .husky/pre-commit to run `npx lint-staged` on commit, which runs Prettier on staged .md/.mdx/.js/.jsx/.ts/.tsx files. Made-with-help-from: GitHub Copilot
1 parent 92703bd commit 274c998

File tree

3 files changed

+620
-1
lines changed

3 files changed

+620
-1
lines changed

.husky/pre-commit

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

0 commit comments

Comments
 (0)