Commit message is validated with https://github.com/conventional-changelog/commitlint#readme on commit via git hook.
Message structure must be:
type(scope?): subject
Valid types are:
- build
- ci
- chore
- docs
- feat
- fix
- perf
- refactor
- revert
- style
- test
Real world examples can look like this:
chore: upgrade lodash to latest version
feat(blog): add comment section
Your changes will be validated by a CI pipeline anyway, but you may want to lint your files and audit packages before pushing:
npm run lint
npm run audit-security