Registry / testing / eslint-config-airbnb-base

eslint-config-airbnb-base

JSON →
library15.0.0jsnpmunverified

Airbnb's base ESLint config (without React) for enforcing consistent JavaScript style, version 15.0.0. Provides two configs: 'airbnb-base' for ES6+ and 'airbnb-base/legacy' for ES5 and below. Requires peer dependencies eslint ^7.32.0 || ^8.2.0 and eslint-plugin-import ^2.25.2. Actively maintained as part of the Airbnb JavaScript style guide. Differentiators: widely adopted, opinionated ruleset, and explicit support for legacy environments.

npm install eslint-config-airbnb-base
INSTALL
IMPORT
SIG · ESLINT-CONFIG-AIRB
E
eslint-config-airbnb-base
testingjavascriptv15.0.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.

eslint-config-airbnb-base
Add "extends": "airbnb-base" to .eslintrc
Using require or import directly (not a module, it's a config)
Config is extended via ESLint's extends, not imported programmatically.
eslint-config-airbnb-base/legacy
Add "extends": "airbnb-base/legacy" to .eslintrc
Extending as 'airbnb-base-legacy'
Legacy config for ES5.
eslint-config-airbnb-base/whitespace
Add "extends": "airbnb-base/whitespace" to .eslintrc
No common mistake
Whitespace-only rules, others set to warn.

Shows how to install peer dependencies and use the airbnb-base config for ES6+ linting.

// Install peer dependencies and the config npx install-peerdeps --dev eslint-config-airbnb-base // .eslintrc.json { "extends": "airbnb-base" } // Example file to lint (test.js) const foo = 1; console.log(foo); // Run ESLint npx eslint test.js
Debug
Known issues
breakingVersion 15.0.0 requires eslint ^7.32.0 || ^8.2.0. Older eslint versions will not work.
fix
Update eslint to ^7.32.0 or ^8.2.0.
affects: 14.x
breakingVersion 15.0.0 requires eslint-plugin-import ^2.25.2. Older versions may cause rule failures.
fix
Update eslint-plugin-import to ^2.25.2.
affects: 14.x
gotchaDo not install this package globally. It must be installed locally in your project.
fix
Install locally with --save-dev.
affects: all
gotchaThe config assumes ES6+ by default. For ES5, use airbnb-base/legacy.
fix
Use extends: 'airbnb-base/legacy' for ES5 projects.
affects: all
Errors
Common errors & fixes
ESLint couldn't find the config 'airbnb-base'.
Package not installed or missing peer dependencies.
fix
Run npx install-peerdeps --dev eslint-config-airbnb-base.
Rule 'import/no-unresolved' threw a fatal error.
Missing eslint-plugin-import peer dependency.
fix
npm install --save-dev eslint-plugin-import@^2.25.2.
Upgrade
Version history
15.0.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for linting
eslint-plugin-importrequiredpeer dependency required for import rules
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-airbnb-base — npm install eslint-config-airbnb-base · libregistry