# @commitlint/lint

> Lint a string against commitlint rules

Latest version **21.2.2** (published 2026-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @commitlint/lint
pnpm add @commitlint/lint
yarn add @commitlint/lint
bun add @commitlint/lint
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 21.2.2 |
| Published | 2026-08-13 |
| First published | 2018-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.12.0 |
| Dependencies | 4 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18736 |
| Author | Mario Nebl |
| Maintainers | marionebl, martinhelmut, escapedcat, bycedric |
| Keywords | commitlint, conventional-changelog, core, library |

## Links

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

## Dependencies (4)

- [@commitlint/parse](https://npm.io/package/@commitlint/parse.md) ^21.2.2
- [@commitlint/rules](https://npm.io/package/@commitlint/rules.md) ^21.2.2
- [@commitlint/types](https://npm.io/package/@commitlint/types.md) ^21.2.0
- [@commitlint/is-ignored](https://npm.io/package/@commitlint/is-ignored.md) ^21.2.2

## 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.2 (latest) — 2026-08-13
- 21.2.0 — 2026-06-30
- 21.1.0 — 2026-06-23
- 21.0.2 — 2026-05-29
- 21.0.1 — 2026-05-12
- 21.0.0 — 2026-05-08
- 20.5.3 — 2026-04-30
- 20.5.0 — 2026-03-15
- 20.4.4 — 2026-03-12
- 20.4.3 — 2026-03-03
- 20.4.2 — 2026-02-19
- 20.4.1 — 2026-02-02
- 20.4.0 — 2026-01-30
- 20.3.1 — 2026-01-08
- 20.3.0 — 2026-01-01
- … 87 more at https://npm.io/package/@commitlint/lint/versions

## README

# @commitlint/lint

Lint a string against commitlint rules

## Getting started

```shell
npm install --save @commitlint/lint
```

## Documentation

Consult [API docs](https://commitlint.js.org/api/lint) for comprehensive documentation.

Documentation generated from [`docs` folder](../../docs/api/format.md).

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