Skip to content

Commit

Permalink
updating pre-commit and adding pre-push
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeesun Kim authored and Jeesun Kim committed Mar 29, 2024
1 parent 5897b88 commit cc999e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn pre-push
1 change: 0 additions & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ const buildEslintCommand = (filenames) =>

module.exports = {
"*.{js,jsx,ts,tsx}": [buildEslintCommand],
"*.{ts,tsx}": () => ["yarn tsc --noEmit"],
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"install-if-package-changed": "git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet yarn.lock && yarn install || exit 0",
"lint:ts": "tsc --noEmit",
"prepare": "husky",
"pre-commit": "concurrently 'lint-staged' 'yarn lint:ts'",
"pre-commit": "yarn lint-staged",
"pre-push": "yarn lint:ts",
"git-info": "rm -rf src/generated/ && mkdir src/generated/ && echo export default \"{\\\"commitHash\\\": \\\"$(git rev-parse --short HEAD)\\\", \\\"version\\\": \\\"$(git describe --tags --always)\\\"};\" > src/generated/gitInfo.ts"
},
"dependencies": {
Expand Down

0 comments on commit cc999e8

Please sign in to comment.