Package Exports
- @gradient-network/commitlint-config
- @gradient-network/commitlint-config/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gradient-network/commitlint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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