You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a meta-package to easily install other packages. For example, "foo-metapackage" depends on "foo-1", "foo-2", and "foo-3". So, instead of projects having to depend on "foo-1", "foo-2", and "foo-3", they can instead clean up their "package.json" file by simply depending on "foo-metapackage".
However, meta-packages don't play well with the "no-extraneous-dependencies" rule, because it does not consider transitive dependencies as legitimate. I think that default behavior is fine, but I would also like the ability to specify that certain packages come from other packages. For example:
With this hypothetical config, as long as this rule detects that "foo-metapackage" exists in the "package.json" file, then it would no longer warn about imports coming from"foo-1"
I can see about doing a PR if you think this is a valuable addition.
The text was updated successfully, but these errors were encountered:
I use a meta-package to easily install other packages. For example, "foo-metapackage" depends on "foo-1", "foo-2", and "foo-3". So, instead of projects having to depend on "foo-1", "foo-2", and "foo-3", they can instead clean up their "package.json" file by simply depending on "foo-metapackage".
However, meta-packages don't play well with the "no-extraneous-dependencies" rule, because it does not consider transitive dependencies as legitimate. I think that default behavior is fine, but I would also like the ability to specify that certain packages come from other packages. For example:
With this hypothetical config, as long as this rule detects that "foo-metapackage" exists in the "package.json" file, then it would no longer warn about imports coming from"foo-1"
I can see about doing a PR if you think this is a valuable addition.
The text was updated successfully, but these errors were encountered: