The ESLint plugin is used to run ESLint checks during the compilation. The plugin has integrated eslint-webpack-plugin internally.
Due to the high overhead of ESLint, running ESLint checks may significantly increase the build time.
You can install the plugin using the following command:
You can register the plugin in the rsbuild.config.ts file:
Whether to enable ESLint checking.
booleantrueDisable ESLint checking:
Enable ESLint checking only during production builds:
Enable ESLint checking only during development builds:
To modify the options of eslint-webpack-plugin, please refer to eslint-webpack-plugin - README to learn about available options.
The eslintPluginOptions object will be shallowly merged with the default configuration object.
exclude:extensions to validate .vue or .svelte files: