Official ESLint plugin for Turborepo, providing lint rules to enforce Turborepo best practices and prevent common misconfigurations. Current stable version is 2.9.6, released alongside Turborepo. It is maintained by Vercel and follows Turborepo's release cadence: canary releases daily, stable releases weekly. Key differentiators: Tight integration with Turborepo's monorepo pipeline; rules like `no-undeclared-env-vars` help catch missing environment variable declarations early. Includes TypeScript type definitions. Requires `turbo >2.0.0` and `eslint >6.6.0`. Supports ESM and CJS.
npm install eslint-plugin-turboVerified import paths — ran on the pinned version, not inferred.
Configure ESLint with the turbo plugin using the recommended config and an explicit rule.
Watch release notes for migration guidance.
Run 'npm install turbo --save-dev' in your project.
Ensure your ESLint configuration supports ESM, or use dynamic import if needed.
Explicitly add rules like 'turbo/no-undeclared-env-vars' if needed.
Install turbo: npm install turbo --save-dev
Use default import: import turbo from 'eslint-plugin-turbo' or require('eslint-plugin-turbo')Ensure only one version is installed, e.g., by hoisting the dependency.