{"id":19507,"library":"eslint-config-erb","title":"ESLint Config for Electron React Boilerplate","description":"eslint-config-erb is the official ESLint configuration for electron-react-boilerplate. Current stable version is 4.1.0, released with Node >=16 support. It extends eslint-config-airbnb with TypeScript, Prettier, and browser compatibility plugins. Release cadence is irregular, tied to the boilerplate's updates. Key differentiators: pre-configured for Electron + React + TypeScript, includes eslint-plugin-compat for targeting Chrome-specific Electron versions, and enforces Prettier formatting. Designed for building Electron apps with React, it handles the specific linting needs of that stack out of the box.","status":"active","version":"4.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/electron-react-boilerplate/eslint-config-erb","tags":["javascript"],"install":[{"cmd":"npm install eslint-config-erb","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-erb","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-erb","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for any ESLint config package","package":"eslint","optional":false},{"reason":"peer dependency for jest-related lint rules","package":"jest","optional":true},{"reason":"peer dependency for React lint rules","package":"react","optional":true}],"imports":[{"note":"ESLint resolves 'erb' as the config name; the full package name also works but is not preferred.","wrong":"extends: 'eslint-config-erb'","symbol":"config","correct":"extends: 'erb'"},{"note":"Do not use require() directly; ESLint expects the config name in extends.","wrong":"require('eslint-config-erb')","symbol":"config","correct":"module.exports = { extends: 'erb' }"},{"note":"While 'eslint-config-erb' works, 'erb' is shorter and consistent with ESLint's shorthand resolution.","wrong":"{\n  \"extends\": \"eslint-config-erb\"\n}","symbol":"config","correct":"{\n  \"extends\": \"erb\"\n}"}],"quickstart":{"code":"// Install\nyarn add --dev eslint-config-erb eslint prettier\n\n// .eslintrc.json\n{\n  \"extends\": \"erb\"\n}\n\n// Lint\nyarn eslint src/","lang":"javascript","description":"Quick setup: install the config with its peer deps and extend it in .eslintrc.json."},"warnings":[{"fix":"Upgrade Node to >=16 or use eslint-config-erb@3.x if on Node 14.","message":"Version 4.x requires Node >=16. Older Node versions cause install failures.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Upgrade ESLint to >=8.","message":"Peer dependency eslint moved from >=7 to >=8 in v4.1.0, dropping ESLint 7 support.","severity":"breaking","affected_versions":">=4.1.0"},{"fix":"Upgrade React to >=17.","message":"React peer dependency now requires React 17 or 18; React 16 is no longer supported.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Use 'extends': 'erb' for future compatibility.","message":"The old extends value 'eslint-config-erb' still works but is deprecated; use 'erb' instead.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure a tsconfig.json exists in the project root or set 'parserOptions.project' to false.","message":"The config sets 'parserOptions.project' for TypeScript, which requires a tsconfig.json. Missing it causes lint errors.","severity":"gotcha","affected_versions":">=4.0.0"},{"fix":"Add 'settings': { 'polyfills': [/*...*/] } or set targets in .browserslistrc.","message":"eslint-plugin-compat may raise false positives for browser APIs in Electron because it targets Chrome versions. Override with 'targets' in settings.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'yarn add --dev eslint-config-erb' or 'npm install --save-dev eslint-config-erb'.","cause":"The package is not installed or ESLint cannot resolve it.","error":"Cannot find module 'eslint-config-erb'"},{"fix":"Install eslint-plugin-prettier: 'yarn add --dev eslint-plugin-prettier'.","cause":"Peer dependency eslint-plugin-prettier is missing.","error":"ESLint: Failed to load plugin 'prettier' declared in 'eslint-config-erb'"},{"fix":"Create a tsconfig.json or override 'parserOptions.project' in your ESLint config.","cause":"The config expects a TypeScript project with a tsconfig.json.","error":"Parsing error: Cannot read file 'tsconfig.json'."},{"fix":"Ensure tsconfig.json exists and is referenced correctly, or set parserOptions.project: null.","cause":"TypeScript ESLint parser requires parserOptions.project to be set.","error":"A valid project must be set in parserOptions"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}