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.

Ability to load plugins by path, not just name

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

5reactions
nzakascommented, Sep 21, 2018

Unfortunately, it looks like there wasn’t enough interest from the team or community to implement this change. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that issues failing to be implemented after 90 days tend to never be implemented, and as such, we close those issues. This doesn’t mean the idea isn’t interesting or useful, just that it’s not something the team can commit to.

1reaction
muuvmuuvcommented, Aug 29, 2018

Any updates here? I’m using an extension for VSCode that is using its own eslint installation and I want eslint to load the plugin from my project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

plugin(name:capability:dependencies:path:exclude:sources:)
A plugin target provides custom build commands to SwiftPM (and to any IDEs based on libSwiftPM). The capability determines what kind of build...
Read more >
Adding local plugin to a Gradle project - Stack Overflow
Is it possible to add a dependent local plugin that will be compiled with the example project? The main issue I'm having now...
Read more >
gulp-load-plugins - npm
Loads gulp plugins from package dependencies and attaches them to an object of your choice.
Read more >
Installing plugins - MoodleDocs
Make sure you deleted the zip file and don't try to rename (for example) an old version of the plugin to some other...
Read more >
Plugins - RequireJS
An example plugin that does not do anything interesting, just does a normal require to load a JS module: define({ load: function (name,...
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