Comments (22)
Global installs do not work anymore. Sorry folks!
from eslint-config-wesbos.
@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.
@Asjas thanks for your reply.
I have tried installing the latest version and still facing the same issue.
from eslint-config-wesbos.
Can you post the contents of your package.json
file here?
from eslint-config-wesbos.
I am trying to install this globally on my system. It should work globally, right?
from eslint-config-wesbos.
There are instructions in the Readme on how to set it up globally so yeah, it should work 🙂
from eslint-config-wesbos.
Yes, exactly. I followed the instructions to set it up globally but it isn't working in my case.
from eslint-config-wesbos.
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.
@Asjas yes, I am using a node version manager, nvm. Any workaround for this?
from eslint-config-wesbos.
Hey @Asjas is there a way around the nvm issue?
I am also seeing the sam eissue on my computer
from eslint-config-wesbos.
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.
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.
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.
from eslint-config-wesbos.
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.
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.
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.
Shoot eh - I like having an eslint globally because not every .js file I write is a huge project...
from eslint-config-wesbos.
I made an issue on the git repo to see if there is a solution for doing something like this.
from eslint-config-wesbos.
I'm facing this issue on gatsby new
starter. Working globally with nextjs and everything else, just in gatsby doesnt.
from eslint-config-wesbos.
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.
@jeremeheh Can you expand on your question? 🙂
from eslint-config-wesbos.
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)
- no-use-before-define HOT 1
- Command returns ERR undefined with new updates dependencies HOT 3
- eslint not running with npm run lint HOT 6
- ERR undefined on Next.js HOT 2
- npm install fails on new Gatsby v4 HOT 2
- Deprecated dependencies HOT 1
- Parsing error: Cannot find module '@babel/preset-react' HOT 1
- Update readme.md for WSL HOT 1
- Investigate "Bundling" Eslint peer Deps HOT 6
- Switch instructions to using "prettier" config in package.json
- Add { "allowShortCircuit": true, "allowTernary": true } HOT 2
- prefer-arrow-callback
- @typescript-eslint/no-unused-expressions
- /*eslint no-unused-vars: ["error", { "destructuredArrayIgnorePattern": "^_" }]*/
- allow importing of `.js` files that resolve to `.ts` on filesystem
- VS Code: ESLint extension no longer supports `eslint.alwaysShowStatus` HOT 1
- stop double quote error
- @typescript-eslint/comma-dangle in .eslintrc.js HOT 1
- es lint command not found HOT 9
- Conflicting plug ins? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-config-wesbos.