Skip to content

Commit

Permalink
chore(husky): add lintstaged and pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Mar 5, 2024
1 parent c526f8c commit d51b894
Show file tree
Hide file tree
Showing 4 changed files with 538 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npx lint-staged
npm run lint:tsc
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,jsx,mjs,mts,ts,tsx}": "eslint --fix",
"*.{css,html,json,md}": "prettier --write"
}
Loading

0 comments on commit d51b894

Please sign in to comment.