Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

warn when an element is not imported directly #122

Open
43081j opened this issue May 9, 2016 · 0 comments
Open

warn when an element is not imported directly #122

43081j opened this issue May 9, 2016 · 0 comments

Comments

@43081j
Copy link

43081j commented May 9, 2016

Currently it seems that if you have two elements using the same element, linting will pass if only one imports the element.

So for example:

  • a
    • paper-button
  • b
    • paper-button

But here, if a uses and does not import paper-button, linting will still pass fine because b has imported it into the tree still.

We should really warn if a doesn't import it directly (its self), because it means if we use this element without importing b one day, it will be wrong.

All used elements should be defined as imports in each module, should they not?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant