-
Notifications
You must be signed in to change notification settings - Fork 141
Failed to load globally installed configs/plugins #1313
Comments
linter-eslint/src/worker-helpers.js Lines 105 to 118 in c14240d
Are you sure that the modules are installed at the same level as |
In this case, the global settings are not really global, as they still do require for you to install the plugins and ext-configs locally in the project. I'm playing around with an option found in this ticket... eslint/eslint#12450 (comment), which seems to work for the ext-configs (airbnb in my case), though I haven't quite figured out how to use for the plugins (because of the syntax. e.g.
That's right, as you can see at the bottom of the screen capture, which shows the global node_modules, which matches
It doesn't seem to be, as it's just logging out |
Issue Type
Feature request.
Hopefully, ideas for an interim solution without modifying my project's codebase?
Issue Description
The project I'm working on consists of an otherwise empty folder that contains a few individual projects, with their own package.JSON, etc. (microservices for the same app, so to say.)
Since the parent folder is a mere container, I'd prefer using a global single ESLint config file, which is stored at '~' (a.k.a. personal configs, which are getting deprecated from the automatic lookup as of their v7.0; still available using
--config
afterwards.)Linter seems unable to find the globally installed plugins due to ESLint's own limitation while using global config files as described here.
The solution offered by them is to use the
--resolve-plugins-relative-to
CLI option, which linter could have as its default, should the user enable using the global config. In theory, the dependencies would be in the same 'node_modules' as ESLint itself.Alternatively, this package could offer an settings input field to manually set custom flags to be given to the CLI. 🤔
Bad idea? I could try opening a PR if the maintainers see this as something useful.
The text was updated successfully, but these errors were encountered: