eslint-plugin-turbo
The eslint-plugin-turbo package helps you find environment variables that are used in your code that are not a part of Turborepo's hashing. Environment variables used in your source code that are not accounted for in turbo.json will be highlighted in your editor and errors will show as ESLint output.
Installation
Install eslint-plugin-turbo into the location where your ESLint configuration is held:
Usage (Flat Config eslint.config.js)
ESLint v9 uses the Flat Config format seen below:
Otherwise, you may configure the rules you want to use under the rules section.
Example (Flat Config eslint.config.js)
Usage (Legacy eslintrc*)
Add turbo to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
Then configure the rules you want to use under the rules section.