Skip to content

Commit

Permalink
chore: add lint-staged to pre-commit hook for automatic ESLint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baumstern committed Nov 22, 2023
1 parent 4e790fc commit 7186bf3
Show file tree
Hide file tree
Showing 4 changed files with 1,285 additions and 73 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*.ts": ["eslint --fix"]
}
Loading

0 comments on commit 7186bf3

Please sign in to comment.