Skip to content

Commit

Permalink
Setup lint-staged and husky
Browse files Browse the repository at this point in the history
  • Loading branch information
caglarturali committed Oct 14, 2024
1 parent d2d9e13 commit 9ba9932
Show file tree
Hide file tree
Showing 5 changed files with 604 additions and 4 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx vitest run
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"!(src/*)": "prettier --write --ignore-unknown",
"src/**/*.{ts,tsx}": ["eslint --fix", "prettier --write --ignore-unknown"]
}
Loading

0 comments on commit 9ba9932

Please sign in to comment.