
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@rsbuild/plugin-eslint
Advanced tools
An Rsbuild plugin to run ESLint checks during the compilation.
An Rsbuild plugin to run ESLint checks during the compilation.
The plugin has integrated eslint-rspack-plugin internally.
We do not recommend using the
@rsbuild/plugin-eslint
plugin, as running ESLint during the build process will significantly increase the build time. Instead, we recommend using a separatelint
command to run ESLint checks.
Install:
npm add @rsbuild/plugin-eslint -D
Add plugin to your rsbuild.config.ts
:
// rsbuild.config.ts
import { pluginEslint } from "@rsbuild/plugin-eslint";
export default {
plugins: [pluginEslint()],
};
Whether to enable ESLint checking.
boolean
true
Disable ESLint checking:
pluginEslint({
enable: false,
});
Enable ESLint checking only during production builds:
pluginEslint({
enable: process.env.NODE_ENV === "production",
});
Enable ESLint checking only during development builds:
pluginEslint({
enable: process.env.NODE_ENV === "development",
});
To modify the options of eslint-rspack-plugin
, please refer to eslint-rspack-plugin - README to learn about available options.
const defaultOptions = {
extensions: ["js", "jsx", "mjs", "cjs", "ts", "tsx", "mts", "cts"],
exclude: [
"node_modules",
"dist", // -> rsbuildConfig.output.distPath.root
],
};
The eslintPluginOptions
object will be shallowly merged with the default configuration object.
pluginEslint({
eslintPluginOptions: {
cwd: __dirname,
configType: "flat",
},
});
exclude
:pluginEslint({
eslintPluginOptions: {
exclude: ["node_modules", "dist", "./src/foo.js"],
},
});
extensions
to validate .vue
or .svelte
files:pluginEslint({
eslintPluginOptions: {
extensions: ["js", "jsx", "mjs", "cjs", "ts", "tsx", "mts", "cts", "vue"],
},
});
MIT.
FAQs
An Rsbuild plugin to run ESLint checks during the compilation.
The npm package @rsbuild/plugin-eslint receives a total of 12,920 weekly downloads. As such, @rsbuild/plugin-eslint popularity was classified as popular.
We found that @rsbuild/plugin-eslint 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.