🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@sisense/commitlint-config

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sisense/commitlint-config

This module contains commitlint configurations for sisense projects

latest
npmnpm
Version
1.9.9
Version published
Weekly downloads
5
-28.57%
Maintainers
2
Weekly downloads
 
Created
Source

Commitlint config

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.

Install

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

Usage

Configuration

For using this config for you project it is suggested to use next configuration (.commitlintrc.json):

{
    "extends": ["@sisense/commitlint-config"]
}

Setup pre-commit hook

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'

Setup repository push rules

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?)+
    

FAQs

Package last updated on 16 Oct 2023

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