Skip to content
This repository has been archived by the owner on Feb 16, 2018. It is now read-only.

marionebl/conventional-changelog-lint-config-lerna-scopes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lint your commits, angular-style

conventional-changelog-lint-config-lerna-scopes

Shareable conventional-changelog-lint config enforcing lerna package names as scopes.

Installation

npm install --save-dev conventional-changelog-lint-config-lerna-scopes conventional-changelog-lint

Usage

Install and use as conventional-changelog-lint shareable config.

// .conventional-changelog-lintrc
{
  "extends": ["angular", "lerna-scopes"]
}

Examples

❯ cat .conventional-changelog-lintrc
{
  "extends": ["lerna-scopes"]
}

❯ tree packages

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

❯ echo "chore(api): fix something in api's build" | conventional-changelog-lint
⧗   input: chore(api): fix something in api's build
✔   found 0 problems, 0 warnings

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

❯ echo "chore: do some general maintenance" | conventional-changelog-lint
⧗   input: chore: do some general maintenance
✔   found 0 problems, 0 warnings

⇨ See conventional-changelog-lint/shareable-config for details


Copyright (c) by Mario Nebl and contributors. Released under the MIT license.

Releases

No releases published

Packages

No packages published