eslint-config-eyeo

raw JSON →
3.2.0 verified Sat Apr 25 auth: no javascript

ESLint shareable config enforcing eyeo/Adblock Plus JavaScript coding style. Version 3.2.0, with ESLint >=6.7.0 as a peer dependency. Provides a consistent linting base for all eyeo projects, including Adblock Plus. It is a flat, unopinionated rule set that can be extended. Released as needed; no frequent updates. Unlike generic configs (e.g., eslint-config-standard), it is tailored to eyeo's internal style guide.

error Cannot find module 'eslint-config-eyeo'
cause Config not installed or not in node_modules.
fix
Run 'npm install --save-dev eslint-config-eyeo' in the project.
error Configuration for rule "xyz" is invalid: Severity should be one of the following: 0 = off, 1 = warning, 2 = error
cause User overrides rule with invalid severity.
fix
Use integer severity: 0, 1, or 2.
error ESLint couldn't find the config "eslint-config-eyeo" to extend from.
cause Config name typo or not installed.
fix
Check spelling and ensure package is installed. Must be 'eslint-config-eyeo'.
error Error: Cannot find module 'eslint-config-eyeo' from '/path/to/project'
cause Config not in node_modules or missing peer dependency eslint.
fix
Install both eslint and eslint-config-eyeo locally.
gotcha Requires ESLint >=6.7.0. Older ESLint versions will fail to parse the config.
fix Update ESLint to >=6.7.0.
breaking Config uses ESLint's new config format (array of objects) which may not be compatible with older ESLint plugins expecting rc-style config.
fix Ensure all ESLint plugins support ESLint's flat config if using eslint.config.js.
gotcha Global installation is discouraged; prefer local devDependencies to avoid version conflicts across projects.
fix Install eslint and eslint-config-eyeo as devDependencies in each project and run via npx eslint.
deprecated The config extends base rules; any overrides must be explicitly set in user config.
fix Add rules object in .eslintrc.json to override.
npm install eslint-config-eyeo
yarn add eslint-config-eyeo
pnpm add eslint-config-eyeo

Setup ESLint with eyeo config. Create .eslintrc.json with extends, then run eslint from CLI or script.

// .eslintrc.json
{
  "extends": "eslint-config-eyeo",
  "root": true
}

// package.json script
"scripts": {
  "lint": "eslint ."
}