{"id":21303,"library":"eslint-config-rollup","title":"eslint-config-rollup","description":"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.","status":"active","version":"3.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/rollup/eslint-config-rollup","tags":["javascript","eslint","config","rollup"],"install":[{"cmd":"npm install eslint-config-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"required peer dependency for linting Rollup-specific patterns","package":"@rollup/eslint-plugin","optional":false}],"imports":[{"note":"Extend in .eslintrc or package.json using the short name 'rollup'.","wrong":"{\n  \"extends\": \"eslint-config-rollup\"\n}","symbol":"rollup","correct":"{\n  \"extends\": \"rollup\"\n}"},{"note":"Prettier config is exported at a subpath; do not import directly from the main entry.","wrong":"const prettierConfig = require('eslint-config-rollup');","symbol":"prettierConfig","correct":"const prettierConfig = require('eslint-config-rollup/prettier');"},{"note":"This is a CommonJS-only package; do not use ESM import.","wrong":"import eslintConfig from 'eslint-config-rollup';","symbol":"default export","correct":"module.exports = require('eslint-config-rollup');"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"extends\": \"rollup\"\n}\n\n// Then run:\n// npx eslint .\n\n// If using Prettier:\n// .prettierrc.js\nconst rollupPrettier = require('eslint-config-rollup/prettier');\nmodule.exports = {\n  ...rollupPrettier,\n  semi: true\n};","lang":"javascript","description":"Sets up ESLint with the Rollup config and optionally extends the exported Prettier config."},"warnings":[{"fix":"Use the short name 'rollup' in the extends field.","message":"Extending 'eslint-config-rollup' directly instead of 'rollup' will not work.","severity":"gotcha","affected_versions":"*"},{"fix":"Use require('eslint-config-rollup/prettier') for Prettier config.","message":"Prettier config is exported at a subpath, not from the main entry.","severity":"gotcha","affected_versions":"*"},{"fix":"Consider using a more generic ESLint config like eslint-config-airbnb.","message":"This config is intended for Rollup projects; using it for other projects may result in incorrect linting rules.","severity":"gotcha","affected_versions":"*"},{"fix":"Ensure you are using ESLint >=7 and update extends format if using .eslintrc.","message":"ESLint 'extends' format changed; old style may cause issues in modern ESLint.","severity":"deprecated","affected_versions":"<3.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Upgrade eslint-plugin-import to >=2.25.0 or change to numeric severity (e.g., 0).","cause":"Using an older version of eslint-plugin-import which does not support string severity.","error":"Configuration for rule \"import/no-unresolved\" is invalid: Value \"off\" is not a valid severity."},{"fix":"Run 'npm install --save-dev eslint-config-rollup' and ensure node_modules is in the correct directory.","cause":"eslint-config-rollup is not installed or not being resolved correctly.","error":"ESLint couldn't find the config \"rollup\". Required by your ESLint configuration."},{"fix":"Use require('eslint-config-rollup/prettier') instead of require('eslint-config-rollup/prettier.js').","cause":"Using incorrect path for Prettier config.","error":"Cannot find module 'eslint-config-rollup/prettier'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}