-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local plugins #1651
Comments
You can install your local plugin with npm and without publishing it to the public registry: npm install /local-path/to/your/custom-plugin
|
@lo1tuma So I'd have to do something like have project dir "foo" and "foo/my-plugin" then "npm --save-dev my-plugin" from "foo"?? Does npm allow that? Seems pretty weird, if not bad/evil. @nzakas I don't see what the resistance is to making this a bit easier for users, unless it's difficult to implement or would be a maintenance burden. Plugins are cool and all, but unless you can give your config a path to a plugin (not just a module name) it makes them a bit awkward for specific requirements. |
@boneskull You have to run |
I think it's reasonable to limit the number of ways to do the same thing. There's already a way to load local plugins, so it appears your use case is already solved. |
Well, if you can |
This ticket references an "open issue" mentioned in #1106.
Since #1386 was closed, if you:
eslint
in a non-CLI context, then--rulesdir
CLI option, orWhich happens to be the situation I'm in right now. 😄
I'm using ESLint from a JetBrains IDE (which provides ESLint errors/warnings in context), and it simply reads a specific config file--it has no options for flags. I imagine this is the case in many other tools as well.
I want to write a custom plugin, but don't want to bother with publishing to NPM. I wanted to bang something out, but since I can't specify a
rulesdir
from my config file, I don't think I have any recourse.The text was updated successfully, but these errors were encountered: