googlearchive / polylint

Lint polymer!
BSD 3-Clause "New" or "Revised" License
116 stars 19 forks source link

Linter should recognize native custom elements #138

Open web-padawan opened 8 years ago

web-padawan commented 8 years ago

In my project I'm using app-router, which is a native custom element (not Polymer), and so is defined with plain JS, without dom-module definition.

Actually polylint throws an error that app-router is not defined. However, the required HTML import containning JS is loaded, and in fact all works correctly.

I suggest resolving this by implementing option exclude to exclude some elements from recognizing.

Or, maybe it is also possible to implement something kinda like a sanity-check for that? We could check scripts for occurences of document.registerElement somehow.