S6819 Prefer tag over role is misleading

  • What language is this for? JS/TS/React
  • Which rule? S6819 Prefer tag over ARIA role
  • Why do you believe it’s a false-positive/false-negative?
    Quoting from ARIA: table role - Accessibility | MDN
    The table value of the ARIA role identifies … similar to the native HTML element. Therefore using some other component does not conflict with the role attributes specification

    Using a component framework that has a table implementation, which does not have the aria role set can be enriched with that specific attribute. Since there is no sensible way to disable a rule for a single line, let alone for a specific rule, in JS/TS/React, the only way around is disabling the rule