Skip to content

Commit

Permalink
chore: modify husty pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Proskynete committed Jan 24, 2023
1 parent 2d2a80e commit 9aecfbb
Show file tree
Hide file tree
Showing 4 changed files with 2,244 additions and 1,443 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
lint-staged
6 changes: 6 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.{ts,tsx,js,jsx}": [
"npm run lint:fix",
"git add ."
]
}
Loading

0 comments on commit 9aecfbb

Please sign in to comment.