Giter VIP home page Giter VIP logo

Comments (22)

wesbos avatar wesbos commented on May 22, 2024 10

Global installs do not work anymore. Sorry folks!

from eslint-config-wesbos.

Asjas avatar Asjas commented on May 22, 2024

@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.

from eslint-config-wesbos.

theBhavikJoshi avatar theBhavikJoshi commented on May 22, 2024

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

from eslint-config-wesbos.

Asjas avatar Asjas commented on May 22, 2024

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

from eslint-config-wesbos.

theBhavikJoshi avatar theBhavikJoshi commented on May 22, 2024

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

from eslint-config-wesbos.

Asjas avatar Asjas commented on May 22, 2024

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

from eslint-config-wesbos.

theBhavikJoshi avatar theBhavikJoshi commented on May 22, 2024

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

from eslint-config-wesbos.

Asjas avatar Asjas commented on May 22, 2024

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.

from eslint-config-wesbos.

theBhavikJoshi avatar theBhavikJoshi commented on May 22, 2024

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

from eslint-config-wesbos.

itstheandre avatar itstheandre commented on May 22, 2024

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

I am also seeing the sam eissue on my computer

from eslint-config-wesbos.

johnbburk avatar johnbburk commented on May 22, 2024

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

from eslint-config-wesbos.

daveholst avatar daveholst commented on May 22, 2024

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

from eslint-config-wesbos.

svikas641 avatar svikas641 commented on May 22, 2024

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)

from eslint-config-wesbos.

itstheandre avatar itstheandre commented on May 22, 2024

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?

from eslint-config-wesbos.

Asjas avatar Asjas commented on May 22, 2024

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"
},

from eslint-config-wesbos.

itstheandre avatar itstheandre commented on May 22, 2024

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

from eslint-config-wesbos.

wesbos avatar wesbos commented on May 22, 2024

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

from eslint-config-wesbos.

wesbos avatar wesbos commented on May 22, 2024

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

from eslint-config-wesbos.

stefansdev avatar stefansdev commented on May 22, 2024

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

from eslint-config-wesbos.

jeremyarrabe avatar jeremyarrabe commented on May 22, 2024

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?

from eslint-config-wesbos.

Asjas avatar Asjas commented on May 22, 2024

@jeremeheh Can you expand on your question? 🙂

from eslint-config-wesbos.

SerhatTeker avatar SerhatTeker commented on May 22, 2024

Global installs do not work anymore. Sorry folks!

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

from eslint-config-wesbos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.