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.
npm install eslint-config-erbVerified import paths — ran on the pinned version, not inferred.
Quick setup: install the config with its peer deps and extend it in .eslintrc.json.
Upgrade Node to >=16 or use eslint-config-erb@3.x if on Node 14.
Upgrade ESLint to >=8.
Upgrade React to >=17.
Use 'extends': 'erb' for future compatibility.
Ensure a tsconfig.json exists in the project root or set 'parserOptions.project' to false.
Add 'settings': { 'polyfills': [/*...*/] } or set targets in .browserslistrc.Run 'yarn add --dev eslint-config-erb' or 'npm install --save-dev eslint-config-erb'.
Install eslint-plugin-prettier: 'yarn add --dev eslint-plugin-prettier'.
Create a tsconfig.json or override 'parserOptions.project' in your ESLint config.
Ensure tsconfig.json exists and is referenced correctly, or set parserOptions.project: null.