Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fd6c7e

Browse files
authored
chore: enable oxlint media-has-caption rule (#29249)
1 parent ab53ecf commit 4fd6c7e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

biome.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"linter": {
1616
"rules": {
1717
"a11y": {
18+
"useMediaCaption": "off", // oxlint owns media-has-caption
1819
"noSvgWithoutTitle": "off",
1920
"useButtonType": "off",
2021
"useSemanticElements": "off",

site/.oxlintrc.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"autocomplete-valid": "error",
3636
"html-has-lang": "error",
3737
"lang": "error",
38+
"media-has-caption": "error",
3839

3940
// --- complexity ---
4041
"no-regex-spaces": "error",
@@ -213,7 +214,6 @@
213214
"no-empty-interface": "off", // suspicious/noEmptyInterface (small)
214215
"no-danger": "off", // security/noDangerouslySetInnerHtml (small: Biome suppression to migrate)
215216
"no-noninteractive-tabindex": "off", // a11y/noNoninteractiveTabindex (small)
216-
"media-has-caption": "off", // a11y/useMediaCaption (small)
217217
"interactive-supports-focus": "off", // a11y/useFocusableInteractive (small)
218218
"iframe-has-title": "off", // a11y/useIframeTitle (small)
219219
"prefer-template": "off", // style/useTemplate (small)

site/src/pages/AgentsPage/components/VideoLightbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const VideoLightbox: FC<VideoLightboxProps> = ({
2727
{RECORDING_UNAVAILABLE_TEXT}
2828
</div>
2929
) : (
30-
// biome-ignore lint/a11y/useMediaCaption: Screen recordings do not have caption tracks.
30+
// oxlint-disable-next-line jsx-a11y/media-has-caption -- Screen recordings do not have caption tracks.
3131
<video
3232
src={src}
3333
controls

0 commit comments

Comments
 (0)