Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
New: Simplify the resolution of third-party plugins/configs/parsers #7
This change would update ESLint to load plugins relative to the user's project root, and other packages relative to where they're specified in a config. This would simplify ESLint's package-loading, resulting in fewer confusing errors about missing packages. It would also fix an existing design bug where ESLint would sometimes fail to load plugins in valid setups.
referenced this pull request
Dec 27, 2018
nzakas left a comment
This looks really good. I like that it eliminates a lot of the confusion around global vs. local installation of ESLint. In my mind, the breaking changes are worthwhile to eliminate that confusion. I just left a couple of questions.
Updated to make the requested changes. I decided to keep the term "project root" at least for now, since the choice to make it equivalent to the CWD is an explicit design choice worth reviewing as part of the RFC. If the RFC gets approved, we can just refer to it as the CWD in documentation without introducing the term "project root".