Closed RomkeVdMeulen closed 7 years ago
bolted on something for you to add local overrides for now. will need a more comprehensive fix at some point.
published: 0.9.22
Thanks! This works great. Could you publish a release of gulp-aurelia-template-lint
with this change as well?
Shouldn't need it? gulp-aurelia-template-lint is locked to aurelia-template-lint @ 0.9.x, npm install aurelia-template-lint
to force the update. :)
Ah: I ran yarn upgrade gulp-aurelia-template-lint
, figuring that would also upgrade the dependencies, but that isn't the case. Learned something new.
Currently I'm getting a lot of mistaken warnings from templates that use our datagrid. They look something like this:
which gives warnings like:
The
row
variable is provided by the Datagrid. Type analysis won't find it though: the Datagrid generates and compiles its own template.I was thinking the best way to solve this would be to add this to my config:
However, this doesn't help. Reading the docs more closely I see that
localProvidors
only works with attributes.It would be great if
localProvidors
could also accept elements, and warnings about variables no be thrown from inside these elements.Even better would be if I could specify a precise list of variables available within each element, but that may be another story for another day.