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.

Support ESLint module install globally via yarn

See original GitHub issue

Need to add yarn’s global module install location to the NODE_PATH when resolving the node module. Something comparable to npm config get prefix

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:10
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
WoodyWoodstacommented, Jan 25, 2017

For those wondering, a workaround on Linux is to set the following:

eslint._legacyModuleResolve: true, 
eslint.nodePath: "/your/home/dir/.config/yarn/global/node_modules/"
2reactions
BYKcommented, Sep 22, 2017

Released Yarn 1.1.0 with this PR merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint | Yarn - Package Manager
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. In many ways, it is similar to JSLint and...
Read more >
How to install ESlint globally? - Stack Overflow
You can install Node modules within the project (locally) or globally. To switch to globally, you may use the -g flag, like so:...
Read more >
Getting Started with ESLint - Pluggable JavaScript Linter
If you don't, make sure to run npm init or yarn init beforehand. ... It is also possible to install ESLint globally rather...
Read more >
ESLint - npm
Make sure your plugins (and ESLint) are both in your project's package. · Make sure you have run npm install and all your...
Read more >
User Guide | eslint-plugin-vue
npm install --save-dev eslint eslint-plugin-vue. Via yarn: ... 'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
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