@gradient-network/commitlint-config
v0.0.1
Published
Commitlint config shared for Gradient Network.
Readme
@gradient-network/commitlint-config
Commitlint configuration shared for Gradient Network.
Guidelines
Learn more: Conventional Commits
Type
Must be one of the following:
build: Changes that affect the build system or external dependenciesci: Changes to our CI configuration files and scriptsdocs: Documentation (include comments) only changesfeat: A new featurefix: A bug fixperf: A code change that improves performancerefactor: A code change that neither fixes a bug nor adds a featurestyle: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)test: Adding missing tests or correcting existing testschore: Changes to miscellaneous thingsrevert: The commit reverts a previous commit
Usage
Install the package into your project.
pnpm add -D @gradient-network/commitlint-configReference in your package.json by adding the field commitlint.
Learn more: Shareable configurations
{
"commitlint": {
"extends": ["@gradient-network/commitlint-config"]
}
}Pre-commit Hook
Work with the git hook pre-commit, you need install husky.
Edit the file .husky/commit-msg and add the command.
commitlint