Registry / testing / eslint-config-airbnb

eslint-config-airbnb

JSON →
library19.0.4jsnpmunverified

eslint-config-airbnb provides a widely-used ESLint shareable config that enforces Airbnb's JavaScript style guide, including ECMAScript 6+ and React rules. The current version is 19.0.4, requiring eslint ^7.32.0 || ^8.2.0 with peer dependencies for React plugins, import plugin, and JSX accessibility plugin. It is one of the most popular ESLint configs, offering a comprehensive set of opinionated rules. Released under the MIT license, it has a stable release cadence and is actively maintained on GitHub.

npm install eslint-config-airbnb
INSTALL
IMPORT
SIG · ESLINT-CONFIG-AIRB
E
eslint-config-airbnb
testingjavascriptv19.0.4
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

extends: 'airbnb'
✓ "extends": "airbnb"
✗ "extends": "eslint-config-airbnb"
In .eslintrc, use 'airbnb' as the config name. 'extends' value should not include the full package name.
extends: 'airbnb/hooks'
✓ "extends": ["airbnb", "airbnb/hooks"]
✗ "extends": "airbnb/hooks"
Must include 'airbnb' as base config separately; 'airbnb/hooks' only adds React Hooks rules.
extends: 'airbnb/whitespace'
✓ "extends": "airbnb/whitespace"
✗ "extends": "airbnb"
Whitespace config only errors on whitespace rules; others are warnings.

Shows how to install eslint-config-airbnb with peer dependencies and configure it in .eslintrc.

// Install with peer dependencies npx install-peerdeps --dev eslint-config-airbnb // Then add to .eslintrc.json { "extends": "airbnb" } // Or for React Hooks support { "extends": ["airbnb", "airbnb/hooks"] }
Debug
Known issues
breakingv19 requires eslint ^7.32.0 || ^8.2.0, dropping support for ESLint <7
fix
Upgrade ESLint to version 7.32.0 or 8.2.0+
affects: >=19.0.0
deprecatedeslint-config-airbnb/base and eslint-config-airbnb/legacy are deprecated; use eslint-config-airbnb-base
fix
Replace with eslint-config-airbnb-base package
affects: >=19.0.0
gotchaAuto-installing peer dependencies incorrectly may cause version mismatches
fix
Use official install command: npx install-peerdeps --dev eslint-config-airbnb
affects: >=0.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'import'
eslint-plugin-import is not installed or version incompatible
fix
Install the correct version: npm info 'eslint-config-airbnb@latest' peerDependencies
Error: Failed to load plugin 'react'
eslint-plugin-react is not installed
fix
Install eslint-plugin-react as a dev dependency
Error: Cannot find module 'eslint-config-airbnb'
Config name is misspelled or package not installed
fix
Ensure package is installed and use 'airbnb' (not full name) in extends
Upgrade
Version history
19.0.4latest on npm
Audit
Dependencies
eslintrequiredPeer dependency for ESLint core
eslint-plugin-importrequiredPeer dependency for import/export rules
eslint-plugin-reactrequiredPeer dependency for React-specific rules
eslint-plugin-jsx-a11yrequiredPeer dependency for accessibility rules
eslint-plugin-react-hooksrequiredPeer dependency for React Hooks rules
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-airbnb — npm install eslint-config-airbnb · libregistry