eslint-config-turbo
The eslint-config-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-config-turbo
into the location where your ESLint configuration is held:
Usage (Flat Config eslint.config.js
)
You can also configure rules available in the configuration:
Usage (Legacy eslintrc*
)
Add turbo
to the extends section of your eslint configuration file. You can omit the eslint-config-
prefix:
You can also configure rules available in the configuration:
Was this helpful?