javascript: `ESLint couldn't find the config "airbnb" to extend from.`

After upgrading to the latest version of this config, v18, and to eslint v6, and without changing any of my ESLint config, I get the following error when I try to lint:

> eslint .

Oops! Something went wrong! :(

ESLint: 6.1.0.

ESLint couldn't find the config "airbnb" to extend from. Please check that the name of the config is correct.

Is there something wrong with the latest config?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 12
  • Comments: 17

Most upvoted comments

Try running npm i eslint-config-airbnb in your user HOME directory.

Edit: only use this if you want it globally used

You don’t want anything installed in your home dir, only locally per project.

Understand your point @ljharb.

I did some experimenting and it looks like local configs override the global one anyway so not sure what the downside would be.

Whenever I jump into an editor, even outside a repo when I’m just dabbling, it’s nice having linting because it helps teach me to write better code. It’s personal improvement.

@nomasprime because anything that’s related to a project but isn’t locally part of that project is something that all the other developers of that project can’t benefit from.

If a project isn’t linted as part of the project, it simply should not be linted.

It’s not an improvement if every developer on the project can’t share in it.

To apply rules across an org, you’d still want to configure the org’s shared config in each project.

Since eslint is now up to 6.2.1, perhaps they release a bugfix for the resolution.

npm i -g eslint@^5.3.0 eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react

can solve the problem