Skip to content

Commit 47b4c9c

Browse files
authored
refactor: consolidated pre-commit scripts #550 (#551)
1 parent 459c892 commit 47b4c9c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
"*.scss": "stylelint --fix",
3-
"*.{js,scss,md}": "prettier --write"
2+
"*.hbs": "npm run lint:html",
3+
"*.md": "markdownlint -c .markdown-lint.yml",
4+
"*.{css,scss}": "stylelint --fix",
5+
"*.{js,ts,tsx}": "xo --fix",
6+
"!*.{js,ts,tsx}": "prettier --write --ignore-unknown"
47
}

0 commit comments

Comments
 (0)