Skip to content

Commit

Permalink
chore: Replace pre-commit with husky + lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 17, 2024
1 parent e1487b0 commit 8a6732e
Show file tree
Hide file tree
Showing 5 changed files with 697 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
"**/*": ["prettier --write --ignore-unknown"],
"**/*.js": ["eslint --fix"],
};
13 changes: 0 additions & 13 deletions .pre-commit-config.yaml

This file was deleted.

Loading

0 comments on commit 8a6732e

Please sign in to comment.