Sitelet https://github.com/eslint/eslint/issues/6237
Skip to content

Ability to load plugins by path, not just name #6237

Description

@mpal9000

It would be nice to install and update less devDependencies in our projects. Config authors, should have the choice to define plugins, parsers and maybe more in the future, as dependencies of their config modules. A self-contained config package is better dev experience in my opinion, than having to install and maintain a config, a parser, and a few plugin packages on every project.

One way to do this, without relying on npm flattening, is by using file paths for those dependencies, inside config modules, which is possible for parsers but not for plugins.

A "path to package name" aliasing on top, could also allow us to write eslint-disable-line plugin/rule, instead of eslint-disable-line /path/to/plugin/rule, when using file paths. Same for warning and error messages.

The goal is to be able to write npm i -D eslint eslint-config-selfcontained on a new project.

PR: #6016
Related issue: #3458
ESLint version: 2.9.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionblockedThis change can't be completed until another issue is resolvedcoreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLinthelp wantedThe team would welcome a contribution from the community for this issueneeds bikesheddingMinor details about this change need to be discussed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions