Newest 'eslint-config-airbnb' Questions - Stack Overflow
Invalid config for eslint-config-airbnb-base
eslint v9 support
`ESLint couldn't find the config "airbnb" to extend from.`
Videos
» npm install eslint-config-airbnb
» npm install eslint-config-airbnb-lite
» npm install eslint-config-airbnb-typescript
I believe esint-config-airbnb is not compatible with the new eslint config at the moment.
However, you can still use it with the new eslint config through @eslint/eslintrc which is a backward compatibility utility provided by ESLint team.
There was a how-to guide on eslint's blog here https://eslint.org/blog/2022/08/new-config-system-part-2/#backwards-compatibility-utility.
Since 2025,
Airbnb flat config is still not supported by the airbnb and airbnb-base so I suggest trying this one instead: eslint-config-airbnb-extended. It’s really good, up-to-date, and supports new tools like import-x and stylistic. Plus, it has helpful CLI support too!
To get started, execute
npx create-airbnb-x-config
This tool will:
- Ask you some quick questions
- Auto-detect your package manager (npm/yarn/pnpm)
- Install all the things you need (or give you commands if you want to do it yourself)
- Give you a GitHub link with your custom config
- You copy → paste the config into your
eslint.config.mjsfile
Once you done with that, you can run eslint and it will automatically work.
Checkout: https://www.npmjs.com/package/eslint-config-airbnb-extended
Blog: https://medium.com/@iamnisharg/level-up-your-code-with-airbnbs-extended-eslint-configuration-f10be85c23fd
» npm install eslint-config-airbnb-es5
Just gathering some data and info on what “base” people extend their Eslint configs from.
I know Airbnb is a popular one but I am curious if that is because a lot of tutorials use it and that’s the path of least resistance for most folks, or if you have a specific reason you want to use it.
If you don’t use it, can you let me know why you don’t, and what you do use instead.
EDIT:
Many have asked why I care or assumed I am setting up linting for the first time. I am of the opinion that some of these giant configs obfuscate and abstract a large amount of the rules that you should care about, and create a level of abstraction from the packages that have the rules anyway. Case in point, Airbnb includes plugins for react and import. I think you can get 80% “airbnb” equivalency by installing these plugins yourself and extending from their recommended configs.
I am building an Eslint config compare tool which can take in two+ configs, and compare their rule sets, showing you where and how they differ.