commitlint-config
/
1.9.9
commitlint-config 1.9.9
Install from the command line:
Learn more about npm packages
$ npm install @sisense/commitlint-config@1.9.9
Install via package.json:
"@sisense/commitlint-config": "1.9.9"
About this version
Shared commitlint config for sisense projects
The module that checks if your commit messages meet the conventional commit format, follows conventional commits specification for linting your commits.
The module should be installed together with its peer dependencies, that contain only commitlint
itself.
# install via npm
$ npm install --save-dev @commitlint/cli @sisense/commitlint-config
# install via yarn
$ yarn add --dev @commitlint/cli @sisense/commitlint-config
For using this config for you project it is suggested to use next configuration (.commitlintrc.json
):
{
"extends": ["@sisense/commitlint-config"]
}
Next code snippets is suggested to install pre-commit hook (requires already installed husky
package):
npx husky add hooks/commit-msg 'npx --no-install commitlint --edit $1'
Next regular expressions are suggested to be set to push rules on repository level:
- Require expression in commit messages:
^((Notes added by \'git notes add\')|((feat|fix|chore|docs|ci|style|refactor|perf|test|revert)(\(.+\))?(!)?\:\s(.{3,})))
- Reject expression in commit messages:
(.{100,}\n?)+
Details
- commitlint-config
- sisense
- over 1 year ago
- UNLICENSED
- 2 dependencies
Assets
- commitlint-config-1.9.9.tgz
Download activity
- Total downloads 6,285
- Last 30 days 0
- Last week 0
- Today 0