# @commitlint/config-workspace-scopes

> Shareable commitlint config enforcing workspace names as scopes

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

## Install

```sh
npm install @commitlint/config-workspace-scopes
pnpm add @commitlint/config-workspace-scopes
yarn add @commitlint/config-workspace-scopes
bun add @commitlint/config-workspace-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 | 2025-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=22.12.0 |
| Dependencies | 0 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18738 |
| Author | Jan Biasi |
| Maintainers | marionebl, martinhelmut, escapedcat, bycedric |
| Keywords | commitlint, commitlint-config, conventional-changelog, npm-workspaces, yarn-workspaces |

## Links

- npm: https://www.npmjs.com/package/@commitlint/config-workspace-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-workspace-scopes

## 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.8.0 — 2025-03-07

## README

# @commitlint/config-workspace-scopes

Shareable `commitlint` config enforcing workspace names as scopes.
Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).

## Getting started

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

## Examples

```text
❯ cat package.json
{
  "workspaces": ["packages/*"]
}

❯ cat commitlint.config.js
{
  extends: ['@commitlint/config-workspace-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-workspace-scopes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
