question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no-shadowed-elements false-positive

See original GitHub issue

We have something like:

<video class="video-js" preload="none" poster={{url model.poster}}>
  {{#each subtitles as |track index|}}
    <track src={{url track.id}} label={{track.name}} default={{eq index 0}}>
  {{/each}}
</video>

Which gives a no-shadowed-elements warning for the track element which, I think, is not correct (as far as I understand what the no-shadowed-elements rule does).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
frederikboschcommented, Oct 12, 2018

I would not be surprised if many more people find this difficult, therefore a little more context. Do not give your handlebars variables the same names as tags.

{{#each list as |option|}}
 <option>this errors anyhow</option>
{{/each}}

Rather do.

{{#each list as |optionData|}}
 <option>this does not error</option>
{{/each}}
0reactions
jacobqcommented, Nov 21, 2018

Do not give your handlebars variables the same names as tags.

Thanks for mentioning that. I had used i (as an iterator / counter / index variable) and would not have thought this would be in any way related to the <i> element.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I avoid shadowed variable warnings when using ...
The error comes from using the no-shadow rule instead of @typescript-eslint/no-shadow . We added the: "@typescript-eslint/no-shadow": ...
Read more >
TypeParameterShadowing - Error Prone
In some cases, the type variable being declared has no relation to the type variable being shadowed. It may be appropriate to rename...
Read more >
no-shadowed-variable - Rule
When set to false parameters, classes, enums and variables declared with let or const are not considered shadowed if the shadowing occurs within...
Read more >
False positive example for collision detection. The shadowed ...
Download scientific diagram | False positive example for collision detection. The shadowed area is the true area swept by the extruders. from publication: ......
Read more >
Distraction-Aware Shadow Detection - CVF Open Access
the detection of false positives and false negatives, achiev- ... tive distraction (FND) - shadow regions with non-shadow patterns. ... element-wise.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found