Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Installs with ESLint 7 / couldn't find the config "wesbos" to extend from #53

Closed
theBhavikJoshi opened this issue Aug 14, 2020 · 22 comments

Comments

@theBhavikJoshi
Copy link

Trying to install but facing this error.

ESLint couldn't find the config "wesbos" to extend from. Please check that the name of the config is correct.
The config "wesbos" was referenced from the config file in "~/.eslintrc".

@Asjas
Copy link
Contributor

Asjas commented Aug 17, 2020

@theBhavikJoshi Can you try installing the latest version of eslint-config-wesbos and see if you get the same error message? 🙂

There was an error being thrown due to an out-of-date package which caused that failed to find the config "wesbos" error. I just tested using the latest release of Wes's plugin and it's now fixed.

@theBhavikJoshi
Copy link
Author

@Asjas thanks for your reply.
I have tried installing the latest version and still facing the same issue.

@Asjas
Copy link
Contributor

Asjas commented Aug 17, 2020

Can you post the contents of your package.json file here?

@theBhavikJoshi
Copy link
Author

I am trying to install this globally on my system. It should work globally, right?

@Asjas
Copy link
Contributor

Asjas commented Aug 21, 2020

There are instructions in the Readme on how to set it up globally so yeah, it should work 🙂

@theBhavikJoshi
Copy link
Author

Yes, exactly. I followed the instructions to set it up globally but it isn't working in my case.

@Asjas
Copy link
Contributor

Asjas commented Aug 21, 2020

Are you using a node version manager such as n or nvm? Or you do you Node.js directly installed on your system?

I can reproduce the error when I use n to manage my Node version.

@theBhavikJoshi
Copy link
Author

@Asjas yes, I am using a node version manager, nvm. Any workaround for this?

@itstheandre
Copy link

Hey @Asjas is there a way around the nvm issue?

I am also seeing the sam eissue on my computer

@johnbburk
Copy link

I'm also seeing the same issue on a global install, even after following the steps to delete everything and try reinstalling.

@daveholst
Copy link

I'm having the same problem with a global install. I don't believe I have a node version manager installed.

@svikas641
Copy link
Contributor

Hi Everyone, who's facing the issue in global installation including me. After a bit of research i found this i don't know how much true this is, if anyone knows please clarify, Thanks.
Screenshot (9)

@itstheandre
Copy link

After a lot of research I also found that. So I guess that Wes's setup wont break amazingly if we dont have an .eslintrc in the root of every project, I guess prettier wont be doing anything, because we disabled everything, right?

@Asjas
Copy link
Contributor

Asjas commented Sep 2, 2020

I'm not getting the global eslint working and I can get the local installation working immediately. I'd personally suggest setting up this eslint-config locally per project, that is how I personally use eslint.

For the most part it appears that eslint is deprecating the global installation and recommends that eslint be installed locally per project. jsx-eslint/eslint-plugin-react#2339 (comment)

People have been recommending to try either eslint . --resolve-plugins-relative-to="global_node_modules_dir" in the CLI or to set up vscode-eslint with the following settings in the settings.json file to resolve the eslint plugins globally but I haven't gotten that working.

"eslint.options": {
  "resolvePluginsRelativeTo": "global_node_modules_dir"
},

@itstheandre
Copy link

I wonder if there is a way to conditionally run the paths. something like: check current folder, check above until it eventually finds the one on the root folder

@wesbos
Copy link
Owner

wesbos commented Sep 11, 2020

Shoot eh - I like having an eslint globally because not every .js file I write is a huge project...

@wesbos
Copy link
Owner

wesbos commented Sep 11, 2020

I made an issue on the git repo to see if there is a solution for doing something like this.

@wesbos wesbos changed the title couldn't find the config "wesbos" to extend from Global Installs with ESLint 7 / couldn't find the config "wesbos" to extend from Sep 11, 2020
@stefansdev
Copy link

I'm facing this issue on gatsby new starter. Working globally with nextjs and everything else, just in gatsby doesnt.

@wesbos
Copy link
Owner

wesbos commented Nov 4, 2020

Global installs do not work anymore. Sorry folks!

@jeremyarrabe
Copy link

After a lot of research I also found that. So I guess that Wes's setup wont break amazingly if we dont have an .eslintrc in the root of every project, I guess prettier wont be doing anything, because we disabled everything, right?

Is there any work around on this?

@Asjas
Copy link
Contributor

Asjas commented Dec 9, 2020

@jeremeheh Can you expand on your question? 🙂

@SerhatTeker
Copy link

Global installs do not work anymore. Sorry folks!

I think we should update README according to this then. "No global install anymore"

@wesbos wesbos closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants