Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/modules/eslint-config-airbnb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
description: Modern, maintained alternative to the eslint-config-airbnb shared config
---

# Replacements for `eslint-config-airbnb`

## `eslint-config-airbnb-extended`

[`eslint-config-airbnb-extended`](https://github.com/eslint-config/airbnb-extended) is a more modern, actively maintained successor to [`eslint-config-airbnb`](https://github.com/airbnb/javascript). It supports both JavaScript and TypeScript, and includes rules for React, JSX, and React Hooks, and supports ESLint v9/10 configs.

It consolidates `eslint-config-airbnb-base`, `eslint-config-airbnb`, and `eslint-config-airbnb-typescript` into a single config, only supports flat config (`eslint.config.mjs`), and uses a faster, modern equivalent of the `import` plugin (`eslint-plugin-import-x`).

The upstream project provides an official [migration guide](https://eslint-airbnb-extended.nishargshah.dev/migration/upgrade-to-extended) and a CLI scaffolder to set up a new config.

Note that any rules referencing the old `import/*` plugin will need to be updated to use the `import-x/*` equivalents (e.g. `import/no-unresolved` -> `import-x/no-unresolved`).
11 changes: 11 additions & 0 deletions manifests/preferred.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@
"replacements": ["emoji-regex-xs", "unicodeClassEscape"],
"url": {"type": "e18e", "id": "emoji-regex"}
},
"eslint-config-airbnb": {
"type": "module",
"moduleName": "eslint-config-airbnb",
"replacements": ["eslint-config-airbnb-extended"],
"url": {"type": "e18e", "id": "eslint-config-airbnb"}
},
"eslint-plugin-es": {
"type": "module",
"moduleName": "eslint-plugin-es",
Expand Down Expand Up @@ -3049,6 +3055,11 @@
"type": "documented",
"replacementModule": "es-toolkit"
},
"eslint-config-airbnb-extended": {
"id": "eslint-config-airbnb-extended",
"type": "documented",
"replacementModule": "eslint-config-airbnb-extended"
},
"eslint-plugin-es-x": {
"id": "eslint-plugin-es-x",
"type": "documented",
Expand Down