Skip to content

Commit a250cb4

Browse files
authored
refactor: consolidated pre-commit scripts #383 (#384)
1 parent b5166d8 commit a250cb4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ echo "### validate branch name ###"
77
npx validate-branch-name
88
echo "### lint staged files ###"
99
npx lint-staged
10-
echo "### npm run lint ###"
11-
npm run lint
1210
echo "### check for commit mail ###"
1311
node ./scripts/check-commit-mail.mjs

.lintstagedrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"*.scss": "stylelint --fix",
3-
"*.{js,scss,md}": "prettier --write"
2+
"*.md": "markdownlint -c .markdown-lint.yml",
3+
"*.{css,scss}": "stylelint --fix",
4+
"*.{js,ts,tsx}": "xo --fix",
5+
"!*.{js,ts,tsx}": "prettier --write --ignore-unknown"
46
}

0 commit comments

Comments
 (0)