'ESLint couldn't find the config "airbnb-base" to extend from
in folder1, i did "npm install", run "eslint --ext .js .", all good.
Then i copied all the subfolder/files from folder1 to folder2, including .eslintrc, .jest, .npmrc, package.json, package-lock.json. After npm install, i got this
> eslint --ext .js .
Oops! Something went wrong! :(
ESLint: 7.32.0
ESLint couldn't find the config "airbnb-base" to extend from. Please check that the name of the config is correct.
How can this happen ? how to fix this pls ? The eslint in folder1 has the same version.
Solution 1:[1]
ok, for folder2, the package.json did miss eslint-config-airbnb-base. Added it and worked. Not sure why folder1 worked, maybe got from its parent folder.
Solution 2:[2]
You can delete '.eslintrc' in the father of the folder2!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user3552178 |
| Solution 2 | Mikeding |
