
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@dasa-health/commitlint-config
Advanced tools
Shareable commitlint config enforcing the dasa commit convention
A shareable commitlint config enforcing the dasa commit conventions:
yarn add -D @commitlint/cli @commitlint/config-conventional @dasa-health/commitlint-config
# Install commitlint cli and conventional config
npm install --save-dev @commitlint/{config-conventional,cli}
# or yarn
yarn add -D @commitlint/config-conventional @commitlint/cli
# For Windows:
npm install --save-dev @commitlint/config-conventional @commitlint/cli
# Configure commitlint to use conventional config
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
To lint commits before they are created you can use Husky's 'commit-msg' hook.
Install in your project npm install husky --save-dev
or yarn add -D husky
.
After that, you can create a .huskyrc
file or add to your package.json
the following code:
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
At project root:
Set your npm token
yarn workspace @dasa-health/commitlint-config publish --access=public --non-interactive
We use the conventional commit lint configuration as base to our configuration, all rules are documented at our index.js
All commits must flow the following pattern:
<type>(<scope>): <short summary>
│ │ │
│ │ └─⫸ Summary in present tense. Capitalized or not. No period at the end.
│ │
│ └─⫸ Commit Scope: Isure number
│
└─⫸ Commit Type: See our types bellow
Also you can add your issue number at commit
type(ISSUE-01): subject or Subject
Our types are:
['build', 'ci', 'chore', 'docs', 'feat', 'fix', 'merge', 'perf', 'refactor', 'revert', 'style', 'test', 'hotfix', 'fastlane']
FAQs
Shareable commitlint config enforcing the dasa commit convention
The npm package @dasa-health/commitlint-config receives a total of 72 weekly downloads. As such, @dasa-health/commitlint-config popularity was classified as not popular.
We found that @dasa-health/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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.