2.0.3 • Published 2 years ago
@ivangabriele/commitlint-config v2.0.3
My CommitLint Configuration
My most commonly used CommitLint configuration.
Usage
Run:
npm i -DE @commitlint/cli @ivangabriele/commitlint-config husky lint-stagedor:
yarn add -DE @commitlint/cli @ivangabriele/commitlint-config husky lint-stagedCreate /.husky/commit-msg:
[ -n "$CI" ] && exit 0
yarn commitlint --edit "$1"Create /.husky/pre-commit:
[ -n "$CI" ] && exit 0
yarn lint-stagedGive them execution rights:
chmod +x .husky/commit-msg .husky/pre-commitCreate /.commitlintrc:
{
"$schema": "https://json.schemastore.org/commitlintrc",
"extends": ["@ivangabriele/commitlint-config"]
}Update /package.json:
{
// ...
"scripts": {
// ...
"prepare": "husky"
// ...
}
// ...
}Contribute
Please refer to the contribution guidelines for information on how to contribute to this project.