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.

If there are ESLint in both global and local, please use local's

See original GitHub issue

Currently, vscode-eslint seems to choose global installed ESLint if ESLint is installed in both global and local. But local’s should be more apposite version specified by package.json for the product. So if there are ESLint in both local and global, I’d like to use local’s.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:5
  • Comments:28 (25 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Feb 1, 2016

The is actually expected: see http://eslint.org/docs/user-guide/configuring.html

Note: A globally-installed instance of ESLint can only use globally-installed ESLint plugins. A locally-installed ESLint can make use of both locally- and globally- installed ESLint plugins.

0reactions
dbaeumercommented, Feb 3, 2016

The fix of this problem is covered by https://github.com/Microsoft/vscode-languageserver-node/issues/23.

@mysticatea Thanks again for helping me tracking this down. @prashaantt if you still see problems with resolving correct configurations please open another issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message "npm WARN config global `--global`, `--local` are ...
Step 1: Go to the \nodejs folder and open the two files npm.cmd and npm by a text editor. Enter image description here....
Read more >
Getting Started with ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
"eslint" task - Rush Stack
This task invokes the ESLint tool which reports errors about common coding problems. When to use it​. ESLint fits together with several other...
Read more >
@rushstack/eslint-config - npm package | Snyk
A TypeScript ESLint ruleset designed for large teams and projects. Philosophy. When you work in a small repo, you spend most of your...
Read more >
Flycheck with file relative eslint executable
What my version does is look for a local eslint and if one is not found it falls back to a globally installed...
Read more >

github_iconTop Related Medium Post

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