A shareable ESLint configuration for Rollup projects, providing a consistent linting setup across Rollup's codebase. Version 3.0.1 is current, with active maintenance alongside Rollup's development cycle. This package enforces specific rules tailored for Rollup's code style, including TypeScript support and Prettier integration. Unlike generic ESLint configs, it is tightly coupled to Rollup's internal coding standards, making it ideal for contributors to Rollup itself or projects following similar patterns. It exports both an ESLint config and a Prettier configuration for consistency.
npm install eslint-config-rollupVerified import paths — ran on the pinned version, not inferred.
Sets up ESLint with the Rollup config and optionally extends the exported Prettier config.
Use the short name 'rollup' in the extends field.
Use require('eslint-config-rollup/prettier') for Prettier config.Consider using a more generic ESLint config like eslint-config-airbnb.
Ensure you are using ESLint >=7 and update extends format if using .eslintrc.
Upgrade eslint-plugin-import to >=2.25.0 or change to numeric severity (e.g., 0).
Run 'npm install --save-dev eslint-config-rollup' and ensure node_modules is in the correct directory.
Use require('eslint-config-rollup/prettier') instead of require('eslint-config-rollup/prettier.js').