Skip to content

linter: media-has-caption — Rule fires twice for the same violation #21911

@mehm8128

Description

@mehm8128

What version of Oxlint are you using?

latest

What command did you run?

No response

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

No response

What happened?

For each <video> or <audio> element that violates media-has-caption, Oxlint reports the same error twice. ESLint correctly reports it once.

When <video> and <audio> has their child element, they report only once.

Reproduction

refer to playground

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions