Socket
Socket
Sign inDemoInstall

commitlint-config-non-conventional

Package Overview
Dependencies
120
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    commitlint-config-non-conventional

Shared commitlint config to enforce a good commit message


Version published
Weekly downloads
103
decreased by-30.87%
Maintainers
1
Install size
5.13 kB
Created
Weekly downloads
 

Changelog

Source

v1.0.1 (2021-12-08)

  • add rules to README (5f021ee)

Readme

Source

commitlint-config-non-conventional

Shared commitlint config to enforce a good commit message

This config disllows the usage of conventinal style commits. Sometimes all you need is just a proper commit messages with rules enforced.

Tests Version License Node

Rules

A commit message or commit title should

  • not be empty
  • be sentence cased
  • contain atleast 10 characters
  • not exceed 50 characters
  • not end with full stop

If the commit message has a body and footer. They should have 2 blank leading lines and should not exceed 72 characters. The description(body) should be sentence cased.

Installation

npm i -D @commitlint/cli commitlint-config-non-conventional

Usage

// commitlint.config.js

module.exports = {
  extends: 'non-conventional',
};

Configuring with husky

# Install husky
npm i -D husky

# Activate husky hooks
npx husky install

# Add commit-msg hook
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit "$1"'

Checkout the husky documentation on how to automatically install git hooks post installation.

Keywords

FAQs

Last updated on 08 Dec 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc