Why do you recommand global install of eslint ?
See original GitHub issueCurrently when you install eslint you get the -g warning
$ npm i eslint
npm WARN prefer global eslint@0.15.0 should be installed with -g
In theory it can be convenient, but it’s clearly not a good advice, especially when you work with different team on different projects. You are very likely to never have the latest version on each projects. Since a upgrade need some times (and eventually some code changes), it’s clearly not an option to use a global install, and a local install is always better (btw, it’s more convenient in practice to offer one command (npm i) that install all deps, without having to introduce a global dependency - like we avoid global var in javascript 😄)
Would you be open to remove the preferGlobal
option of the package.json ?
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Getting Started with ESLint
It is also possible to install ESLint globally rather than locally (using npm install eslint --global ). However, this is not recommended, and...
Read more >In what cases should you install eslint globally?
It is also possible to install ESLint globally rather than locally (using npm install eslint --global). However, this is not recommended, and ...
Read more >Installing Eslint globally. What is your opinion? : r/webdev
I was thinking that a global installation would act as a default case for projects created in VS code. If there isn't any...
Read more >Local vs. Global installation · Issue #6732 · eslint/eslint
Currently if you install ESLint globally, all of the plugins need to be installed globally. And visa-versa for local installation. I believe ...
Read more >How to Set Up ESLint Globally with VSCode
In this tutorial, we are going to install and set up ESLint globally with Airbnb Style Guide, and then set it up to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll remove it.
Great !