Skip to content

Commit

Permalink
refactor: switched from pretty-quick to lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Aug 9, 2023
1 parent 88e1287 commit 48cd9e1
Show file tree
Hide file tree
Showing 4 changed files with 875 additions and 382 deletions.
6 changes: 5 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"

echo "### validate branch name ###"
npx validate-branch-name
npx --yes pretty-quick --staged
echo "### lint staged files ###"
npx lint-staged
echo "### npm run lint ###"
npm run lint
echo "### check for commit mail ###"
node ./scripts/check-commit-mail.mjs
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.scss": "stylelint --fix",
"*.{js,scss,md}": "prettier --write"
}
Loading

0 comments on commit 48cd9e1

Please sign in to comment.