# eslint-plugin-turbo

> ESLint plugin for Turborepo

Latest version **2.10.13** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-turbo
pnpm add eslint-plugin-turbo
yarn add eslint-plugin-turbo
bun add eslint-plugin-turbo
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.10.13 |
| Published | 2026-09-14 |
| First published | 2022-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 846.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 31081 |
| Author | Vercel |
| Maintainers | vercel-release-bot, turbobot |
| Keywords | eslint, eslint-plugin, eslintplugin, turbo, turborepo |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-turbo
- Repository: https://github.com/vercel/turborepo
- Homepage: https://github.com/vercel/turborepo#readme
- Issues: https://github.com/vercel/turborepo/issues
- npm.io page: https://npm.io/package/eslint-plugin-turbo

## Dependencies (1)

- [dotenv](https://npm.io/package/dotenv.md) 16.0.3

## 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

- 2.10.13 (latest) — 2026-09-14
- 2.10.14-canary.4 (canary) — 2026-09-16
- 2.3.7 (turbo-2.3) — 2025-02-13
- 2.10.14-canary.3 — 2026-09-15
- 2.10.14-canary.2 — 2026-09-15
- 2.10.14-canary.1 — 2026-09-14
- 2.10.13-canary.6 — 2026-09-13
- 2.10.13-canary.5 — 2026-09-12
- 2.10.13-canary.4 — 2026-09-10
- 2.10.13-canary.3 — 2026-09-10
- 2.10.13-canary.2 — 2026-09-09
- 2.10.13-canary.1 — 2026-08-26
- 2.10.12 — 2026-08-25
- 2.10.11 — 2026-08-18
- 2.10.11-canary.4 — 2026-08-16
- … 762 more at https://npm.io/package/eslint-plugin-turbo/versions

## README

# `eslint-plugin-turbo`

Easy ESLint configuration for Turborepo

## Installation

1. You'll first need to install [ESLint](https://eslint.org/):

```sh
npm install eslint --save-dev
```

2. Next, install `eslint-plugin-turbo`:

```sh
npm install eslint-plugin-turbo --save-dev
```

## Usage (Flat Config `eslint.config.js`)

ESLint v9 uses the Flat Config format seen below:

```js
import turbo from "eslint-plugin-turbo";

export default [turbo.configs["flat/recommended"]];
```

Otherwise, you may configure the rules you want to use under the rules section.

```js
import turbo from "eslint-plugin-turbo";

export default [
  {
    plugins: {
      turbo
    },
    rules: {
      "turbo/no-undeclared-env-vars": "error"
    }
  }
];
```

## Example (Flat Config `eslint.config.js`)

```js
import turbo from "eslint-plugin-turbo";

export default [
  {
    plugins: {
      turbo
    },
    rules: {
      "turbo/no-undeclared-env-vars": [
        "error",
        {
          allowList: ["^ENV_[A-Z]+$"]
        }
      ]
    }
  }
];
```

## Usage (Legacy `eslintrc*`)

Add `turbo` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
  "plugins": ["turbo"]
}
```

Then configure the rules you want to use under the rules section.

```json
{
  "rules": {
    "turbo/no-undeclared-env-vars": "error"
  }
}
```

## Example (Legacy `eslintrc*`)

```json
{
  "plugins": ["turbo"],
  "rules": {
    "turbo/no-undeclared-env-vars": [
      "error",
      {
        "allowList": ["^ENV_[A-Z]+$"]
      }
    ]
  }
}
```

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