Msg formatting tool for git-commit based on Commitizen.
And you could check your committing files when pre-commit.
- edit package.json.
Add content to the relevant location of the file,not replace package.json
"mantisConfig": { // if you want to use eslint/tslint
"staticLintCMD": "<tslint ./eslint .>" // lint command,if you want to use
}
- install or update
npm install
- if you want to use lint-staged create file
.lintstagedrc.json
in./
and add it.
{
"src/*.js": [
"prettier --write", // if use prettier
"commitmsg",
"git add"
// able to add some commands,like jest
]
}
use mantis
replace git commit
- husky
- commit-lint
- lint-stage
- prettier
- TSLint/ESLint
- valid input
- Chinese Language Config
- English Language Config
执行install时,会安装commit-msg勾子,用于强制检测commit message,并推荐mantis,其他的勾子会在执行mantis执行