Skip to content
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

New: Enhanced local plugin resolution. (fixes #3458) #4735

Closed
wants to merge 1 commit into from

Commits on Dec 18, 2015

  1. New: Enhanced local plugin resolution. (fixes eslint#3458)

    When writing presets sometimes it is desirable to include plugins as dependencies, since the preset may be explicitly for that dependency and that means one less thing users need to include and it offers an easy way to pin versions of a plugin with your preset. Unfortunately, the default `eslint` behavior is incapable of loading these local-style plugins for a couple of reasons:
    
     * `require` only resolves things relative to local eslint installation,
     * absolute paths are not supported,
     * developers don't want any code in `preset` definition files.
    
    So with all those caveats in mind, the behavior has been altered to simply start the preset resolution process at the _caller_'s module (i.e. the preset) instead of the _callee_'s module (i.e. `eslint`).
    izaakschroeder committed Dec 18, 2015
    Configuration menu
    Copy the full SHA
    9832120 View commit details
    Browse the repository at this point in the history