Socket
Book a DemoInstallSign in
Socket

@dasa-health/commitlint-config

Package Overview
Dependencies
Maintainers
5
Versions
346
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dasa-health/commitlint-config

Shareable commitlint config enforcing the dasa commit convention

latest
npmnpm
Version
1.1.0
Version published
Weekly downloads
85
-78.21%
Maintainers
5
Weekly downloads
 
Created
Source

Getting started

A shareable commitlint config enforcing the dasa commit conventions:

Install

yarn add -D @commitlint/cli @commitlint/config-conventional @dasa-health/commitlint-config

Usage

# 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"
    }
  }
}

How publish

At project root:

Set your npm token

yarn workspace @dasa-health/commitlint-config publish --access=public --non-interactive

Usage at commits

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

Package last updated on 27 Sep 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.