Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@haaretz/commitlint-config
Advanced tools
Shareable commitlint config enforcing the Haaretz commit convention (mostly angular, but a bit more relaxed)
Shareable commitlint config enforcing the Haaretz commit convention (mostly angular, but a bit more relaxed).
For use with @commitlint/cli and @commitlint/prompt-cli.
This configuration checks every commit message to ensure it complies with the following structure:
type(scope)?: subject line
body?
footer?
The following rules must too be observed:
100
chars at length (warning)type
of commit at hand. Options are:
build
Build-process related commits.chore
Maintenance. General chores that don't fall into any of the other categoriesci
Continuous-integration related commits (e.g., fixing Travis build, setting up Jenkins, etc.)docs
Documentation related commitsfeat
Commits introducing a new featurefix
Bug fixesperf
Commits dealing with measuring or improving performancerefactor
Refactor commits that introduce no new functionality, infrastructure or fixes.revert
Reverting an old commitstyle
Reformatting, missing commas, semi colons, etc.test
When only adding missing or fixing failing testsWIP
Work in progressscope
denoting what parts of the code are affected by the changesscope
must be lower-casetype
and optional scope
must be followed directly by a colon (:
) and a space.
Install with Yarn:
yarn add --dev @haaretz/commitlint-config
echo "module.exports = {extends: ['@haaretz/commitlint-config']};" > commitlint.config.js
or with npm:
npm install -save-dev @haaretz/commitlint-config
echo "module.exports = {extends: ['@haaretz/commitlint-config']};" > commitlint.config.js
Install husky
and @commitlint/cli
:
yarn add --dev @commitlint/cli husky
And add a commitmsg
script to your package.json
:
"scripts": {
"commitmsg": "commitlint -e"
}
Husky will setup a commitmsg
git-hook that is executed every time a new commit
is created, invoking commitlint with the -e flag, which causes it process the
commit message from .git/COMMIT_MSG
.
FAQs
Shareable commitlint config enforcing the Haaretz commit convention (mostly angular, but a bit more relaxed)
The npm package @haaretz/commitlint-config receives a total of 8 weekly downloads. As such, @haaretz/commitlint-config popularity was classified as not popular.
We found that @haaretz/commitlint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.