Registry / testing / eslint-config-rollup

eslint-config-rollup

JSON →
library3.0.1jsnpmunverified

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-rollup
INSTALL
IMPORT
SIG · ESLINT-CONFIG-ROLL
E
eslint-config-rollup
testingjavascriptv3.0.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rollup
{ "extends": "rollup" }
{ "extends": "eslint-config-rollup" }
Extend in .eslintrc or package.json using the short name 'rollup'.
prettierConfig
const prettierConfig = require('eslint-config-rollup/prettier');
const prettierConfig = require('eslint-config-rollup');
Prettier config is exported at a subpath; do not import directly from the main entry.
default export
module.exports = require('eslint-config-rollup');
import eslintConfig from 'eslint-config-rollup';
This is a CommonJS-only package; do not use ESM import.

Sets up ESLint with the Rollup config and optionally extends the exported Prettier config.

// .eslintrc.json { "extends": "rollup" } // Then run: // npx eslint . // If using Prettier: // .prettierrc.js const rollupPrettier = require('eslint-config-rollup/prettier'); module.exports = { ...rollupPrettier, semi: true };
Debug
Known issues
gotchaExtending 'eslint-config-rollup' directly instead of 'rollup' will not work.
fix
Use the short name 'rollup' in the extends field.
affects: *
gotchaPrettier config is exported at a subpath, not from the main entry.
fix
Use require('eslint-config-rollup/prettier') for Prettier config.
affects: *
gotchaThis config is intended for Rollup projects; using it for other projects may result in incorrect linting rules.
fix
Consider using a more generic ESLint config like eslint-config-airbnb.
affects: *
deprecatedESLint 'extends' format changed; old style may cause issues in modern ESLint.
fix
Ensure you are using ESLint >=7 and update extends format if using .eslintrc.
affects: <3.0
Errors
Common errors & fixes
Configuration for rule "import/no-unresolved" is invalid: Value "off" is not a valid severity.
Using an older version of eslint-plugin-import which does not support string severity.
fix
Upgrade eslint-plugin-import to >=2.25.0 or change to numeric severity (e.g., 0).
ESLint couldn't find the config "rollup". Required by your ESLint configuration.
eslint-config-rollup is not installed or not being resolved correctly.
fix
Run 'npm install --save-dev eslint-config-rollup' and ensure node_modules is in the correct directory.
Cannot find module 'eslint-config-rollup/prettier'
Using incorrect path for Prettier config.
fix
Use require('eslint-config-rollup/prettier') instead of require('eslint-config-rollup/prettier.js').
Upgrade
Version history
3.0.1latest on npm
Audit
Dependencies
@rollup/eslint-pluginrequiredrequired peer dependency for linting Rollup-specific patterns
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-rollup — npm install eslint-config-rollup · libregistry