# @dotcom-reliability-kit/eslint-config

> A linting config, specifically focussed on enhancing code quality and proactively catching errors/bugs before they make it into production

Latest version **5.0.1** (published 2026-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dotcom-reliability-kit/eslint-config
pnpm add @dotcom-reliability-kit/eslint-config
yarn add @dotcom-reliability-kit/eslint-config
bun add @dotcom-reliability-kit/eslint-config
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2026-07-14 |
| First published | 2023-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^22.12 \|\| ^24 \|\| ^26 |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | hamza.samih, rowanmanning, the-ft, robertboulton, leila.micollier |

## Links

- npm: https://www.npmjs.com/package/@dotcom-reliability-kit/eslint-config
- Repository: https://github.com/Financial-Times/dotcom-reliability-kit
- Homepage: https://github.com/Financial-Times/dotcom-reliability-kit/tree/main/packages/eslint-config#readme
- Issues: https://github.com/Financial-Times/dotcom-reliability-kit/issues?q=label:"package: eslint-config"
- npm.io page: https://npm.io/package/@dotcom-reliability-kit/eslint-config

## Recent versions

- 5.0.1 (latest) — 2026-07-14
- 5.0.0-beta.1 (prerelease) — 2026-06-03
- 5.0.0 — 2026-06-23
- 4.1.0 — 2025-05-08
- 4.0.0 — 2025-01-21
- 3.1.1 — 2024-11-26
- 3.1.0 — 2024-04-29
- 3.0.2 — 2024-03-22
- 3.0.1 — 2024-01-09
- 3.0.0 — 2024-01-08
- 2.0.1 — 2023-06-23
- 2.0.0 — 2023-05-23
- 1.0.0 — 2023-05-17
- 0.1.3 — 2023-05-02
- 0.1.2 — 2023-04-24
- … 2 more at https://npm.io/package/@dotcom-reliability-kit/eslint-config/versions

## README

# @dotcom-reliability-kit/eslint-config

A linting config, specifically focussed on enhancing code quality and proactively catching errors/bugs before they make it into production. This is not a replacement for the [@financial-times/eslint-config-next](https://github.com/Financial-Times/eslint-config-next), but it can be installed alongside it or as an extension in it's config. This module is part of [FT.com Reliability Kit](https://github.com/Financial-Times/dotcom-reliability-kit#readme).

- [Usage](#usage)
  - [Static Code Analysis](#static-code-analysis)
- [Migrating](#migrating)
- [Contributing](#contributing)
- [License](#license)

## Usage

Install @dotcom-reliability-kit/eslint-config as a development dependency:

```
npm install --save-dev @dotcom-reliability-kit/eslint-config
```

Reference the shared configuration in your repository's own .eslintrc.js like so:

```
module.exports = {
extends: ['@dotcom-reliability-kit/eslint-config']
}
```

> [!TIP]
> If you're using this package with TypeScript, we recommend using the following settings in your `tsconfig.json` file to avoid type errors:
>
> ```json
> {
>     "esModuleInterop": true,
>     "module": "nodenext",
>     "moduleResolution": "nodenext"
> }
> ```

Avoid using .eslintrc file format (without a file extension), as [this has been depracated](https://eslint.org/docs/latest/use/configure/configuration-files#configuration-file-formats).

### Static Code Analysis

Add the following command to the `scripts` object in your repository's package.json:

```
"lint:js": "eslint ."
```

Run that command in your terminal to lint your files (either cd into the relevant directory or run from root). Any linting errors found by the config will be displayed in your terminal, with helpful suggestions on how to resolve them.


## Migrating

Consult the [Migration Guide](./docs/migration.md) if you're trying to migrate to a later major version of this package.


## Contributing

See the [central contributing guide for Reliability Kit](https://github.com/Financial-Times/dotcom-reliability-kit/blob/main/docs/contributing.md).

## License

Licensed under the [MIT](https://github.com/Financial-Times/dotcom-reliability-kit/blob/main/LICENSE) license.

Copyright © 2023, The Financial Times Ltd.

---
_Source: https://npm.io/package/@dotcom-reliability-kit/eslint-config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
