Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
eslint.config.js
)ESLint v9 uses the Flat Config format seen below:
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]+$"],
},
],
},
},
];
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]+$"]
}
]
}
}
FAQs
ESLint plugin for Turborepo
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.