Socket
Socket
Sign inDemoInstall

@commitlint/config-lerna-scopes

Package Overview
Dependencies
516
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @commitlint/config-lerna-scopes

Shareable commitlint config enforcing lerna package and workspace names as scopes


Version published
Weekly downloads
23K
decreased by-7.65%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

18.4.4 (2024-01-04)

Bug Fixes

  • @commitlint/load: Remove unused @types/node dependency (#3801) (7b3f8b3)
  • read: remove fs-extra usage and use fs/promises (#3803) (714be66)
  • subject-full-stop false positive when using ellipsis (#3839) (b4246d6)
  • update dependency fs-extra to v11.2.0 (#3799) (abb4da2)
  • utils: remove fs-extra usage (#3804) (92f2237)

Readme

Source

Lint your lerna project commits

@commitlint/config-lerna-scopes

Shareable commitlint config enforcing lerna package and workspace names as scopes. Use with @commitlint/cli and @commitlint/prompt-cli.

Getting started

npm install --save-dev @commitlint/config-lerna-scopes @commitlint/cli
echo "module.exports = {extends: ['@commitlint/config-lerna-scopes']};" > commitlint.config.js

Examples

❯ cat commitlint.config.js
{
  extends: ['@commitlint/config-lerna-scopes']
}

❯ tree packages

packages
├── api
├── app
└── web

❯ echo "build(api): change something in api's build" | commitlint
⧗   input: build(api): change something in api's build
✔   found 0 problems, 0 warnings

❯ echo "test(foo): this won't pass" | commitlint
⧗   input: test(foo): this won't pass
✖   scope must be one of [api, app, web] [scope-enum]
✖   found 1 problems, 0 warnings

❯ echo "ci: do some general maintenance" | commitlint
⧗   input: ci: do some general maintenance
✔   found 0 problems, 0 warnings

Consult docs/rules for a list of available rules.

Keywords

FAQs

Last updated on 04 Jan 2024

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