# @commitlint/config-lerna-scopes

> Shareable commitlint config enforcing lerna package and workspace names as scopes

Latest version **21.2.0** (published 2026-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @commitlint/config-lerna-scopes
pnpm add @commitlint/config-lerna-scopes
yarn add @commitlint/config-lerna-scopes
bun add @commitlint/config-lerna-scopes
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 21.2.0 |
| Published | 2026-06-30 |
| First published | 2017-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=22.12.0 |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18740 |
| Author | Jan Biasi |
| Maintainers | marionebl, martinhelmut, escapedcat, bycedric |
| Keywords | commitlint, commitlint-config, conventional-changelog, lerna |

## Links

- npm: https://www.npmjs.com/package/@commitlint/config-lerna-scopes
- Repository: https://github.com/conventional-changelog/commitlint
- Homepage: https://commitlint.js.org/
- Issues: https://github.com/conventional-changelog/commitlint/issues
- npm.io page: https://npm.io/package/@commitlint/config-lerna-scopes

## Dependencies (1)

- [@commitlint/config-workspace-scopes](https://npm.io/package/@commitlint/config-workspace-scopes.md) ^21.2.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 21.2.0 (latest) — 2026-06-30
- 21.0.2 — 2026-05-29
- 21.0.1 — 2026-05-12
- 21.0.0 — 2026-05-08
- 20.4.3 — 2026-03-03
- 20.4.0 — 2026-01-30
- 20.2.0 — 2025-12-05
- 20.0.0 — 2025-09-25
- 19.8.1 — 2025-05-08
- 19.7.0 — 2025-01-04
- 19.5.0 — 2024-09-11
- 19.0.0 — 2024-02-27
- 18.6.1 — 2024-02-13
- 18.4.4 — 2024-01-04
- 18.4.3 — 2023-11-21
- … 79 more at https://npm.io/package/@commitlint/config-lerna-scopes/versions

## README

# @commitlint/config-lerna-scopes

Lint your lerna project commits

Shareable `commitlint` config enforcing lerna package scopes.
Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).

> [!IMPORTANT]  
> If you are using NPM or Yarn workspaces, please use the [@commitlint/config-workspace-scopes](../config-workspace-scopes/) package instead. Support for workspaces will be removed from this package in a future major version.

## Getting started

```sh
npm install --save-dev @commitlint/config-lerna-scopes @commitlint/cli
echo "export default {extends: ['@commitlint/config-lerna-scopes']};" > commitlint.config.js
```

## Examples

```text
❯ 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

❯ 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
```

Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules.

---
_Source: https://npm.io/package/@commitlint/config-lerna-scopes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
