{"id":20526,"library":"rollup-plugin-eslint","title":"rollup-plugin-eslint","description":"A Rollup plugin that verifies entry point and all imported files with ESLint. Version 7.0.0, released 2021-02-12. Maintained by TrySound, this plugin integrates ESLint linting into the Rollup build pipeline. Key differentiators: auto-fix support (via `fix` option) and integration with Rollup's plugin system. Compared to other lint plugins like rollup-plugin-eslint-plugin or @rollup/plugin-eslint (which replaced it), this was the original but is now deprecated in favor of @rollup/plugin-eslint. Last commit was 2019-09-18, so no recent activity.","status":"deprecated","version":"7.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/TrySound/rollup-plugin-eslint","tags":["javascript","rollup","rollup-plugin","es2015","eslint","lint"],"install":[{"cmd":"npm install rollup-plugin-eslint","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-eslint","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-eslint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; plugin requires Rollup >=1.0","package":"rollup","optional":false},{"reason":"peer dependency; eslint >=6","package":"eslint","optional":false}],"imports":[{"note":"Named export since v5.0.0; default export removed.","wrong":"import eslint from 'rollup-plugin-eslint'","symbol":"eslint","correct":"import { eslint } from 'rollup-plugin-eslint'"},{"note":"Must destructure to get the named export.","wrong":"const eslint = require('rollup-plugin-eslint')","symbol":"rollup-plugin-eslint (CommonJS)","correct":"const { eslint } = require('rollup-plugin-eslint')"},{"note":"Types are not shipped; use @types/rollup-plugin-eslint or upgrade to @rollup/plugin-eslint which includes types.","wrong":"","symbol":"TypeScript types","correct":"import { eslint } from 'rollup-plugin-eslint'"}],"quickstart":{"code":"// rollup.config.js\nimport { rollup } from 'rollup';\nimport { eslint } from 'rollup-plugin-eslint';\n\nexport default {\n  input: 'src/main.js',\n  plugins: [\n    eslint({\n      throwOnError: true,\n      throwOnWarning: false,\n      include: ['src/**/*.js'],\n      exclude: ['node_modules/**']\n    })\n  ]\n};","lang":"javascript","description":"Basic Rollup configuration using eslint plugin to lint all JS files in src."},"warnings":[{"fix":"Replace with @rollup/plugin-eslint: npm install @rollup/plugin-eslint --save-dev and change import to { eslint } from '@rollup/plugin-eslint'","message":"rollup-plugin-eslint is deprecated. Use @rollup/plugin-eslint instead.","severity":"deprecated","affected_versions":">=7.0.0"},{"fix":"Use import { eslint } from 'rollup-plugin-eslint' instead of import eslint from 'rollup-plugin-eslint'","message":"v5.0.0: Changed from default export to named export.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Ensure Node.js >=8 and Rollup >=1.0","message":"v6.0.0: Dropped Node.js v6 support and upgraded Rollup to v1.","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"ESLint >=6 required","message":"v7.0.0: Upgraded ESLint to v6, dropped older ESLint versions.","severity":"breaking","affected_versions":">=7.0.0"},{"fix":"Use Rollup's watch mode or configure the plugin to run on every build.","message":"Plugin processes files only once; if files change after initial build, they are not re-linted unless Rollup runs again.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Change to: import { eslint } from 'rollup-plugin-eslint'","cause":"Using default import instead of named import in v5+.","error":"TypeError: (0 , _rollupPluginEslint.eslint) is not a function"},{"fix":"Install: npm install rollup-plugin-eslint --save-dev","cause":"Package not installed or incorrect path.","error":"Error: Cannot find module 'rollup-plugin-eslint'"},{"fix":"Use the 'eslint' function from rollup-plugin-eslint directly.","cause":"Confusion with other lint plugins.","error":"The 'eslint' option is not supported. Use 'lint' instead."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}