Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Failed to load globally installed configs/plugins #1313

Open
@justincorrigible

Description

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.

Screenshot 2020-01-06 at 12 00 17

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions