aurelia / template-lint

Sanity check of Aurelia-flavor template HTML
Apache License 2.0
56 stars 17 forks source link

aurelia-template-lint is not running custom rules #171

Closed nyxtom closed 7 years ago

MeirionHughes commented 7 years ago

yeah that's fine. I'm taking (yet another) stab at 0.10, so it'll be redundant soon.

nyxtom commented 7 years ago

@MeirionHughes Could you do a minor version bump so gulp-aurealia-template-lint picks this change up?

Thanks!

MeirionHughes commented 7 years ago

done; if you could give it a try and report back that would be great. :)

nyxtom commented 7 years ago

Works great! Thanks!

MeirionHughes commented 7 years ago

Fair warning; 0.10 is a complete rewrite, including how you add custom handlers.

nyxtom commented 7 years ago

@MeirionHughes The particular custom rule I'm using at the moment is to look for unused require imports. It simply checks whether a component is being used via the standard tags or through as-element. It does not support the ability to look for custom components which have a tag via tagName, but it gets the job done. Plus, since the tagName is an edge case, it would be nice to simply add an ignore comment or ignore file for lint checking (not sure how to do this yet).