Skip to content

Commit

Permalink
chore: lint only staged files (#2957)
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhhashemi authored Jul 6, 2022
1 parent e280a02 commit 8bc3986
Show file tree
Hide file tree
Showing 4 changed files with 757 additions and 1 deletion.
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:fix
npm run lint:staged
3 changes: 3 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"./**/*.{ts,tsx,js,jsx,vue}": ["eslint --fix --quiet --no-error-on-unmatched-pattern"],
};
Loading

0 comments on commit 8bc3986

Please sign in to comment.