eslint-plugin-turbo
Ease configuration for Turborepo
Installation
- You'll first need to install ESLint:
npm install eslint --save-dev
- Next, install
eslint-plugin-turbo
:
npm install eslint-plugin-turbo --save-dev
Usage
Add turbo
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["turbo"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"turbo/no-undeclared-env-vars": "error"
}
}
Example
{
"plugins": ["turbo"],
"rules": {
"turbo/no-undeclared-env-vars": [
"error",
{
"allowList": ["^ENV_[A-Z]+$"]
}
]
}
}