{"library":"rollup-plugin-eslint-bundle","title":"rollup-plugin-eslint-bundle","description":"Rollup plugin that runs ESLint validation on the final bundled output rather than individual source files, allowing you to check and auto-fix the generated bundle. Current stable version is 9.0.0, targeting Node >=20, Rollup 4.x, and ESLint >=8.x. The plugin works as a build-time step, useful for enforcing lint rules on the bundle itself (e.g., code style, prohibited patterns). Differentiators: operates on the bundle, not sources; supports ESLint's fix mode; includes both Rollup config and JavaScript API usage. This plugin is actively maintained.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-eslint-bundle"],"cli":null},"imports":["import { eslintBundle } from 'rollup-plugin-eslint-bundle'","import { eslintBundle } from 'rollup-plugin-eslint-bundle'","import type { EslintBundleOptions } from 'rollup-plugin-eslint-bundle'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport { eslintBundle } from 'rollup-plugin-eslint-bundle';\n\nconst bundle = await rollup.rollup({\n  input: 'main.js',\n  plugins: [\n    eslintBundle({\n      eslintOptions: {\n        fix: true,\n        overrideConfig: {\n          rules: { 'no-console': 'error' }\n        }\n      },\n      throwOnWarning: true,\n      throwOnError: true,\n      formatter: 'compact'\n    })\n  ]\n});\n\nawait bundle.write({\n  file: 'dist/bundle.js',\n  format: 'esm'\n});\n\nawait bundle.close();","lang":"typescript","description":"Demonstrates basic usage: lint and auto-fix the output bundle with ESLint, throwing on warnings and errors.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}