-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: Enhanced local plugin resolution.
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`). This fixes #3458.
- Loading branch information
1 parent
4e38572
commit 11dc566
Showing
4 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters