Skip to content

Suppression for noPositiveTabindex doesn't suppress work #11182

Description

@ematipico

Ignoring with CSS works perfectly! Thanks!

But with html, what to do with this situation, when attributes on multiline?

<!-- biome-ignore lint/a11y/noPositiveTabindex: 123 -->
<slot
  name="icon"
  tabindex="2"
></slot>

Biome doesn't bind this ignore comment to attribute tabindex

https://biomejs.dev/playground/?lintRules=noPositiveTabindex&tab=formatter&pane=Diagnostics&code=PAAhAC0ALQAgAGIAaQBvAG0AZQAtAGkAZwBuAG8AcgBlACAAbABpAG4AdAAvAGEAMQAxAHkALwBuAG8AUABvAHMAaQB0AGkAdgBlAFQAYQBiAGkAbgBkAGUAeAA6ACAAMQAyADMAIAAtAC0APgAKADwAcwBsAG8AdAAKACAAIABuAGEAbQBlAD0AIgBpAGMAbwBuACIACgAgACAAdABhAGIAaQBuAGQAZQB4AD0AIgAyACIACgA%2BADwALwBzAGwAbwB0AD4A&language=html

Originally posted by @hahavenn in #11177 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AnalyzerArea: analyzerA-LinterArea: linterL-HTMLLanguage: HTML and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions