question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why do you recommand global install of eslint ?

See original GitHub issue

Currently 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:closed
  • Created 9 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nzakascommented, Feb 28, 2015

I’ll remove it.

0reactions
MoOxcommented, Feb 28, 2015

Great !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found