Skip to content

Commit

Permalink
feat: add prettier & lint-staged hook
Browse files Browse the repository at this point in the history
Introduces a `format:fix` script to apply prettier changes, and a
`format:check` script to check them.

Also introduces lint-staged such that staged files will be
auto-formatted.
  • Loading branch information
43081j committed Sep 10, 2023
1 parent 86aaacd commit b6c86ea
Show file tree
Hide file tree
Showing 3 changed files with 600 additions and 1 deletion.
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"

npm exec lint-staged

0 comments on commit b6c86ea

Please sign in to comment.