Skip to content

Commit

Permalink
Merge pull request privacy-scaling-explorations#833 from privacy-scal…
Browse files Browse the repository at this point in the history
…ing-explorations/precommit-hook

chore: add lint-staged to pre-commit hook for automatic ESLint fix
  • Loading branch information
baumstern authored Nov 22, 2023
2 parents 4e790fc + 7186bf3 commit d003312
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 d003312

Please sign in to comment.