Skip to content

Commit

Permalink
refactor: switch from pretty-quick to lint-staged (#369)
Browse files Browse the repository at this point in the history
* refactor: added necessary husky file

* refactor: switched from pretty-quick to lint-staged
  • Loading branch information
mfranzke authored Aug 9, 2023
1 parent 8e8911e commit 7ac8a82
Show file tree
Hide file tree
Showing 5 changed files with 876 additions and 382 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
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 7ac8a82

Please sign in to comment.