vscode-eslint: Doesn't work with external config file from node module

I have my own eslint config that is hooked into .eslintrc.js -> extends: ['eslint-config-myconfig']

this causes an error to be thrown in VSCode, note that the same setup works in Atom.io

Failed to load plugin 'promise' declared in 'myProject/.eslintrc.js ยป eslint-config-myconfig': Cannot find module 'eslint-plugin-promise' Require stack: - /Users/{...myWorkspace}/__placeholder__.js Referenced from: /Users/{...myWorkspace}/{...myProject}/node_modules/eslint-config-myconfig/index.js

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 16 (8 by maintainers)

Most upvoted comments

@skaraman have a look at the eslint.workingDirectories setting which allows you to customize these setups (https://github.com/microsoft/vscode-eslint#settings-options). They new [{ "mode": "auto" }] might be your friend here.

Actually comparing your output with mine reports exactly the same errors and for me they are even correctly reported in VS Code itself. I have actually no idea why in you setup the compat plugin can not be loaded. On which folder do you open the workspace ?