Skip to content

Commit

Permalink
feat(ci): add lint-staged task in husky for efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
nurrony committed Jan 21, 2025
1 parent ed9534e commit ffe8195
Show file tree
Hide file tree
Showing 4 changed files with 680 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run lint:fix && npm run lint && npm test
npx lint-staged && npm test
5 changes: 5 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'src/*.js|eslint.config.js|*.json':
- npm run lint:fix
- npm run lint
- prettier --write
Loading

0 comments on commit ffe8195

Please sign in to comment.