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.

eslint.workingDirectories being ignored

See original GitHub issue

The eslint.workingDirectories option is now being ignored - unsure if an update to this plugin or our eslint caused this issue:

"eslint.workingDirectories": [
        { 
            "directory" : "./packages/user-interface", 
            "changeProcessCWD": true
        }
    ],

We expect the plugin import/resolver to point to our webpack config in packages/user-interface not at the root / level.

Error resolving webpackConfig Error: Cannot find module '/Users/dancooke/Projects/my-project-root/next.config.js'
Require stack:`

It should be resolving the path from the package, as i’ve set changeProcessCWD to true

eslint version: 6.0.1 vscode-eslint version: 1.9.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Jul 8, 2019

@johnnyreilly have you upgraded to ESLint 6.0. If so you might want to look at: https://github.com/microsoft/vscode-eslint/issues/696

0reactions
dpkirchnercommented, Oct 29, 2019

Thanks, that helped me figure out what I was doing wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vscode eslint not ignoring directory? - Stack Overflow
My solutions is: Source map root/.vscode/settings.json. Script { "eslint.workingDirectories": [{ "mode": "auto" }], }.
Read more >
ESLint not working in VSCode? Help build a troubleshooting ...
I recently encountered a project where the lint script in the package.json was missing the dot at the very end which tells ESLint...
Read more >
ESLint | PyCharm Documentation - JetBrains
In the Working directories field, specify the working directories for the ESLint process. By default the field is empty and PyCharm detects ...
Read more >
Eslint - LSP Mode - LSP support for Emacs
Controls whether a warning should be emitted when a file is ignored. lsp-eslint-working-directories #. Type: lsp-string-vector. Default: [].
Read more >
ESLint - Open VSX Registry
lintTask.options": "-c C:/mydirectory/.eslintrc.json --ignore-path ... workingDirectories - specifies how the working directories ESLint is using are ...
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