Skip to content

Commit

Permalink
chore: lint-staged should be run only once (vuestorefront#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethidden authored Mar 25, 2022
1 parent 1459af8 commit f0d7175
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

rootDir=$(pwd)

# lint-staged cannot run in parallel cuz git, so we manually loop over
# each package and run the precommit command
for package in $(ls packages);
do
cd "$rootDir/packages/$package"
yarn run --silent precommit
done
yarn run --silent lint-staged

0 comments on commit f0d7175

Please sign in to comment.