Skip to content

Commit

Permalink
Merge pull request #51 from alexzurbonsen/make-pre-commit-hook-use-li…
Browse files Browse the repository at this point in the history
…nt-staged

feat(package): use lint-staged for pre-commit hook
  • Loading branch information
jmcook1186 authored Apr 25, 2024
2 parents aca9d41 + ab28dbc commit 9008bda
Show file tree
Hide file tree
Showing 4 changed files with 651 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
npm test
npm run fix:package
npm run pre-commit
npm run test
6 changes: 6 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
'*.ts': [
'gts lint',
],
'package.json': 'fixpack',
}
Loading

0 comments on commit 9008bda

Please sign in to comment.