You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the linter in terminal using src/public/node_modules/.bin/eslint debug.js OR src/public/node_modules/.bin/eslint src/ui/debug.js it's throwing the below error.
Oops! Something went wrong! :(
ESLint: 8.8.0
ESLint couldn't find the config "airbnb-base" to extend from. Please check that the name of the config is correct.
The config "airbnb-base" was referenced from the config file in "/projects/linter/helloworld/.eslintrc.json".
BUT - if I move the .eslintrc.json & debug.js to /src/public and run src/public/node_modules/.bin/eslint src/public/debug.js, the file will be linted successfully.
How could I point the eslint to refer the config in src/public/node_modules/ so it would lint the debug.js in root as well as in /src/ui/ ?
bugESLint is working incorrectlyrepro:neededThis issue should include a reproducible example
1 participant
Converted from issue
This discussion was converted from issue #15589 on February 09, 2022 01:45.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Node version: v16.13.1
npm version: v8.1.2
Local ESLint version: Not found
Global ESLint version: Not found
Operating System: linux 5.13.0-28-generic
My project structure :
.yarnrc :
--*.modules-folder "./src/public/node_modules".eslintrc.json :
When I run the linter in terminal using
src/public/node_modules/.bin/eslint debug.jsORsrc/public/node_modules/.bin/eslint src/ui/debug.jsit's throwing the below error.BUT - if I move the
.eslintrc.json&debug.jsto/src/publicand runsrc/public/node_modules/.bin/eslint src/public/debug.js, the file will be linted successfully.How could I point the eslint to refer the config in
src/public/node_modules/so it would lint thedebug.jsinrootas well as in/src/ui/?Beta Was this translation helpful? Give feedback.
All reactions