Skip to content

Commit

Permalink
feat: add git hooks , verify commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 committed Jun 17, 2021
1 parent 7dcd98a commit 78dd939
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,15 @@
"webpack-chain": "6.3.1",
"webpack-merge": "4.2.2",
"yargs": "^17.0.1"
},
"gitHooks": {
"pre-commit": "lint-staged",
"commit-msg": "node scripts/verifyCommit.js"
},
"lint-staged": {
"*.{js,jsx,vue,ts,tsx}": [
"eslint --fix",
"git add"
]
}
}
Empty file added scripts/verifyCommit.js
Empty file.

0 comments on commit 78dd939

Please sign in to comment.