Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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
The npm package eslint-plugin-turbo receives a total of 335,718 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.