Registry / testing / eslint-config-erb

eslint-config-erb

JSON →
library4.1.0jsnpmunverified

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-erb
INSTALL
IMPORT
SIG · ESLINT-CONFIG-ERB
E
eslint-config-erb
testingjavascriptv4.1.0
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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

config
extends: 'erb'
extends: 'eslint-config-erb'
ESLint resolves 'erb' as the config name; the full package name also works but is not preferred.
config
module.exports = { extends: 'erb' }
require('eslint-config-erb')
Do not use require() directly; ESLint expects the config name in extends.
config
{ "extends": "erb" }
{ "extends": "eslint-config-erb" }
While 'eslint-config-erb' works, 'erb' is shorter and consistent with ESLint's shorthand resolution.

Quick setup: install the config with its peer deps and extend it in .eslintrc.json.

// Install yarn add --dev eslint-config-erb eslint prettier // .eslintrc.json { "extends": "erb" } // Lint yarn eslint src/
Debug
Known issues
breakingVersion 4.x requires Node >=16. Older Node versions cause install failures.
fix
Upgrade Node to >=16 or use eslint-config-erb@3.x if on Node 14.
affects: >=4.0.0
breakingPeer dependency eslint moved from >=7 to >=8 in v4.1.0, dropping ESLint 7 support.
fix
Upgrade ESLint to >=8.
affects: >=4.1.0
breakingReact peer dependency now requires React 17 or 18; React 16 is no longer supported.
fix
Upgrade React to >=17.
affects: >=4.0.0
deprecatedThe old extends value 'eslint-config-erb' still works but is deprecated; use 'erb' instead.
fix
Use 'extends': 'erb' for future compatibility.
affects: all
gotchaThe config sets 'parserOptions.project' for TypeScript, which requires a tsconfig.json. Missing it causes lint errors.
fix
Ensure a tsconfig.json exists in the project root or set 'parserOptions.project' to false.
affects: >=4.0.0
gotchaeslint-plugin-compat may raise false positives for browser APIs in Electron because it targets Chrome versions. Override with 'targets' in settings.
fix
Add 'settings': { 'polyfills': [/*...*/] } or set targets in .browserslistrc.
affects: all
Errors
Common errors & fixes
Cannot find module 'eslint-config-erb'
The package is not installed or ESLint cannot resolve it.
fix
Run 'yarn add --dev eslint-config-erb' or 'npm install --save-dev eslint-config-erb'.
ESLint: Failed to load plugin 'prettier' declared in 'eslint-config-erb'
Peer dependency eslint-plugin-prettier is missing.
fix
Install eslint-plugin-prettier: 'yarn add --dev eslint-plugin-prettier'.
Parsing error: Cannot read file 'tsconfig.json'.
The config expects a TypeScript project with a tsconfig.json.
fix
Create a tsconfig.json or override 'parserOptions.project' in your ESLint config.
A valid project must be set in parserOptions
TypeScript ESLint parser requires parserOptions.project to be set.
fix
Ensure tsconfig.json exists and is referenced correctly, or set parserOptions.project: null.
Upgrade
Version history
4.1.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for any ESLint config package
jestoptionalpeer dependency for jest-related lint rules
reactoptionalpeer dependency for React lint rules
Agent activity
4 hits · last 30 days
node
4
Resources