You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d5d3f3
Browse filesBrowse the repository at this point in the historyBrowse files
feat(lint): flag video/img src pointing at an audio file (#3741)
* feat(lint): flag video/img src pointing at an audio file
Co-Authored-By: Claude Opus 5 <[email protected]>
* refactor(lint): drop m4a from the audio src kinds
Co-Authored-By: Claude Opus 5 <[email protected]>
---------
Co-authored-by: Claude Opus 5 <[email protected]>
message: `<${tag.name}${elementId ? ` id="${elementId}"` : ""}> src is a ${kind}, not a ${expected}. The producer fail-closes when the tag and file kind disagree.`,
127
+
message: `<${tag.name}${elementId ? ` id="${elementId}"` : ""}> src is ${SRC_KIND_NOUN[kind]}, not ${SRC_KIND_NOUN[expected]}. The producer fail-closes when the tag and file kind disagree.`,
117
128
elementId,
118
129
fixHint:
119
130
tag.name==="video"
120
-
? "Use <img> for a still, or point <video> at a video URL (mp4/webm/mov/…)."
121
-
: "Use <video> for a video URL, or point <img> at a still (png/jpg/webp/…).",
131
+
? "Use <img> for a still, <audio> for sound, or point <video> at a video URL (mp4/webm/mov/…)."
132
+
: "Use <video> for a video URL, <audio> for sound, or point <img> at a still (png/jpg/webp/…).",
0 commit comments