Skip to content

Commit

Permalink
chore: add prettier to pre-commit (renovatebot#34344)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Feb 20, 2025
1 parent dce6d9f commit 9bbb138
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh

pnpm ls-lint
ls-lint
lint-staged

BRANCH_NAME=$(git branch --show-current)

Expand Down
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*": "prettier --ignore-unknown --write"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@
"jest-mock": "29.7.0",
"jest-mock-extended": "3.0.7",
"jest-snapshot": "29.7.0",
"lint-staged": "15.4.3",
"markdownlint-cli2": "0.17.2",
"memfs": "4.17.0",
"nock": "13.5.6",
Expand Down
Loading

0 comments on commit 9bbb138

Please sign in to comment.