-
Versionseslint@7.21.0 SituationI have ESlint config in my project:
and has
With this configuration ESlint is not able to find QuestionShouldn't the plugins that are the dependencies of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
If I understand the migration guide properly this even shouldnt happen in eslint@7 and plugins related to a certain config file should be resolved relative to it. |
Beta Was this translation helpful? Give feedback.
-
But I guess it is correct behavior as the RFC for this implies and the important word in the afore mentioned migration guide is |
Beta Was this translation helpful? Give feedback.
-
#3458 issue implies the same as the RFC. So the answer is that all the plugins are resolved relative to the entry config (the config in the project) and it doesn't make sense to install plugins as dependencies of shareable configs as they won't be used. One of the reasons it works this ways is uniqueness of rules provided by a certain plugin in different versions. |
Beta Was this translation helpful? Give feedback.
#3458 issue implies the same as the RFC. So the answer is that all the plugins are resolved relative to the entry config (the config in the project) and it doesn't make sense to install plugins as dependencies of shareable configs as they won't be used. One of the reasons it works this ways is uniqueness of rules provided by a certain plugin in different versions.