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.
npm install rollup-plugin-eslintVerified import paths — ran on the pinned version, not inferred.
Basic Rollup configuration using eslint plugin to lint all JS files in src.
Replace with @rollup/plugin-eslint: npm install @rollup/plugin-eslint --save-dev and change import to { eslint } from '@rollup/plugin-eslint'Use import { eslint } from 'rollup-plugin-eslint' instead of import eslint from 'rollup-plugin-eslint'Ensure Node.js >=8 and Rollup >=1.0
ESLint >=6 required
Use Rollup's watch mode or configure the plugin to run on every build.
Change to: import { eslint } from 'rollup-plugin-eslint'Install: npm install rollup-plugin-eslint --save-dev
Use the 'eslint' function from rollup-plugin-eslint directly.