Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uphold/commitlint-config

Package Overview
Dependencies
Maintainers
9
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uphold/commitlint-config

Shareable commitlint config enforcing Uphold's commit conventions

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

commitlint-config-uphold

Shareable commitlint config enforcing Uphold's commit conventions.

Status

npm version build status

Motivation

This package ensures our commits follow our standard:

  1. Header must not exceed 72 characters.
  2. Header must start with a verb in the simple present tense (imperative mood).
  3. Header must be sentence-cased, meaning it must start with an uppercase letter.
  4. Header must not end with a full-stop.
  5. Body can make use of all verb tenses.

Installation

❯ npm i commitlint-config-uphold --save-dev

or with Yarn:

❯ yarn add commitlint-config-uphold --dev

Usage with commitlint

Create .commitlintrc.yml with:

extends: "@uphold/commitlint-config"

Verbs detection

Verbs are detected using data from Wordnet provided by wordnet package.

The wordnet database is large with more than 28 megabytes because it contains all the english words, including their definitions. To provide the smallest package possible, there's a script that generates a JSON file that contains the extracted english verbs from wordnet. To update the generated JSON whenever wordnet releases a new version, run:

❯ yarn update-wordnet-verbs

⚠️ The detection algorithm simply checks if the first word is an english word that may be used as a verb (in the simple-present tense). It does not account if the word is actually a verb in the context of the phrase. It would be possible to detect if it's actually used as a verb by using natural language processing techniques. However, they often give bad results.

License

MIT

Keywords

FAQs

Package last updated on 01 Jul 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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc