Skip to content

Commit

Permalink
refactor: consolidated pre-commit scripts #383 (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Aug 21, 2023
1 parent b5166d8 commit a250cb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ echo "### validate branch name ###"
npx validate-branch-name
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
6 changes: 4 additions & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"*.scss": "stylelint --fix",
"*.{js,scss,md}": "prettier --write"
"*.md": "markdownlint -c .markdown-lint.yml",
"*.{css,scss}": "stylelint --fix",
"*.{js,ts,tsx}": "xo --fix",
"!*.{js,ts,tsx}": "prettier --write --ignore-unknown"
}

0 comments on commit a250cb4

Please sign in to comment.