Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
eslint-plugin-turbo
Advanced tools
eslint-plugin-turbo
Easy ESLint configuration for Turborepo
npm install eslint --save-dev
eslint-plugin-turbo
:npm install eslint-plugin-turbo --save-dev
eslintrc*
)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"
}
}
eslintrc*
){
"plugins": ["turbo"],
"rules": {
"turbo/no-undeclared-env-vars": [
"error",
{
"allowList": ["^ENV_[A-Z]+$"]
}
]
}
}
eslint.config.js
)In ESLint v8, both the legacy system and the new flat config system are supported. In ESLint v9, only the new system will be supported. See the official ESLint docs.
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.
import turbo from "eslint-plugin-turbo";
export default [
{
plugins: {
turbo,
},
rules: {
"turbo/no-undeclared-env-vars": "error",
},
},
];
eslint.config.js
)import turbo from "eslint-plugin-turbo";
export default [
{
plugins: {
turbo,
},
rules: {
"turbo/no-undeclared-env-vars": [
"error",
{
allowList: ["^ENV_[A-Z]+$"],
},
],
},
},
];
FAQs
ESLint plugin for Turborepo
The npm package eslint-plugin-turbo receives a total of 503,416 weekly downloads. As such, eslint-plugin-turbo popularity was classified as popular.
We found that eslint-plugin-turbo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.