Registry / testing / eslint-config-airbnb-extended

eslint-config-airbnb-extended

JSON →
library3.1.0jsnpmunverified

An ESLint configuration package that extends the official Airbnb ESLint config to support TypeScript, React hooks, and modern JavaScript. Current stable version is 3.1.0, requiring Node.js >=18.18.0 and ESLint ^9.0.0. It is ESM-only and includes TypeScript types. Key differentiators: all batteries included (no need to install multiple peer configs), redesigned CLI, and significantly smaller package size (~72% reduction) compared to v2. Released on a monthly cadence. V3 dropped Node v16 support and switched to ESM-only.

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

default
import airbnbXConfig from 'eslint-config-airbnb-extended'
const airbnbXConfig = require('eslint-config-airbnb-extended')
ESM-only since v3; CommonJS require() will fail.
createConfig
import { createConfig } from 'eslint-config-airbnb-extended'
const { createConfig } = require('eslint-config-airbnb-extended')
Utility to build custom configs programmatically.
legacy
import { legacy } from 'eslint-config-airbnb-extended'
import legacy from 'eslint-config-airbnb-extended/legacy'
Legacy config object for projects not yet migrated to v3 flat config.

Shows how to import and extend the Airbnb Extended ESLint config in a flat config file.

// eslint.config.js import airbnbXConfig from 'eslint-config-airbnb-extended'; export default [ ...airbnbXConfig, { rules: { // Customize rules here } } ];
Debug
Known issues
breakingv3 dropped Node.js v16 support, requires Node 18.18 or higher.
fix
Upgrade Node.js to version 18.18.0 or higher.
affects: >=3.0.0
breakingv3 is ESM-only; CommonJS require() will throw an error.
fix
Use import statements or switch to ESM in your project.
affects: >=3.0.0
breakingv2 removed the 'Own Customization' option from the CLI.
fix
Refer to documentation for customization guidance.
affects: >=2.3.0 <3.0.0
deprecatedv2.2.0 re-enabled formatting rules that were accidentally turned off, causing lint failures for users who relied on the disabled rules.
fix
Review your code for formatting issues after upgrading to v2.2.0+.
affects: >=2.2.0 <2.3.0
gotchav3.1.0 introduced n/prefer-global/crypto and n/prefer-global/timers rules at error level, which may break builds for code using Node.js global objects.
fix
Override these rules in your eslint config if needed: 'n/prefer-global/crypto': 'off', 'n/prefer-global/timers': 'off'.
affects: >=3.1.0
gotchav3.1.0 enabled all recommended react-hooks rules; projects with pre-existing hook violations will now see lint errors.
fix
Run eslint --fix to auto-fix violations or manually update hook dependencies.
affects: >=3.1.0
gotchaThe package is ESM-only and ships TypeScript types; ensure your TypeScript settings allow ESM imports.
fix
Set '"type": "module"' in package.json or use .mjs extension for config files.
affects: >=3.0.0
Errors
Common errors & fixes
Cannot find module 'eslint-config-airbnb-extended'
Package not installed or wrong import path.
fix
Run 'npm install eslint-config-airbnb-extended --save-dev' and ensure correct import: 'import airbnbXConfig from 'eslint-config-airbnb-extended''.
Error [ERR_REQUIRE_ESM]: require() of ES Module ... not supported.
Using CommonJS require() with an ESM-only package.
fix
Switch to ESM: use 'import' or rename config file to .mjs and set 'type': 'module' in package.json.
'n/prefer-global/crypto' rule is not found
Missing eslint-plugin-n dependency or version mismatch.
fix
Install eslint-plugin-n: 'npm install eslint-plugin-n --save-dev'.
Configuration for rule 'react/jsx-curly-brace-presence' is invalid
Incompatible rule configuration from v2.2.0 re-enabling.
fix
Update config to match v3 syntax or use 'override' correctly in flat config.
TypeError: Cannot destructure property 'createConfig' of ... undefined
Trying to import named export from a non-existent subpath.
fix
Use correct import: 'import { createConfig } from 'eslint-config-airbnb-extended''.
Upgrade
Version history
3.1.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required to run eslint rules
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-airbnb-extended — npm install eslint-config-airbnb-extended · libregistry