--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx let a = Photo of friend.; let a = Picture of friend.; let a = Image of friend.; let a = PhOtO of friend.; let a = {"photo"}; let a = piCTUre of friend.; let a = imAGE of friend.; let a = photo of cool person; let a = picture of cool person; let a = image of cool person; let a = image of cool person; let a = photo; let a = image; let a = picture; let a = {`picture; let a = {`photo; let a = {`image; let a = {`picture; let a = {`photo; let a = {`image; ``` # Diagnostics ``` invalid.jsx:1:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. > 1 │ let a = Photo of friend.; │ ^^^^^^^^^^^^^^^^^^ 2 │ let a = Picture of friend.; 3 │ let a = Image of friend.; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:2:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 1 │ let a = Photo of friend.; > 2 │ let a = Picture of friend.; │ ^^^^^^^^^^^^^^^^^^^^ 3 │ let a = Image of friend.; 4 │ let a = PhOtO of friend.; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:3:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 1 │ let a = Photo of friend.; 2 │ let a = Picture of friend.; > 3 │ let a = Image of friend.; │ ^^^^^^^^^^^^^^^^^^ 4 │ let a = PhOtO of friend.; 5 │ let a = {"photo"}; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:4:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 2 │ let a = Picture of friend.; 3 │ let a = Image of friend.; > 4 │ let a = PhOtO of friend.; │ ^^^^^^^^^^^^^^^^^^ 5 │ let a = {"photo"}; 6 │ let a = piCTUre of friend.; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:5:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 3 │ let a = Image of friend.; 4 │ let a = PhOtO of friend.; > 5 │ let a = {"photo"}; │ ^^^^^^^^^ 6 │ let a = piCTUre of friend.; 7 │ let a = imAGE of friend.; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:6:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 4 │ let a = PhOtO of friend.; 5 │ let a = {"photo"}; > 6 │ let a = piCTUre of friend.; │ ^^^^^^^^^^^^^^^^^^^^ 7 │ let a = imAGE of friend.; 8 │ let a = photo of cool person; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:7:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 5 │ let a = {"photo"}; 6 │ let a = piCTUre of friend.; > 7 │ let a = imAGE of friend.; │ ^^^^^^^^^^^^^^^^^^ 8 │ let a = photo of cool person; 9 │ let a = picture of cool person; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:8:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 6 │ let a = piCTUre of friend.; 7 │ let a = imAGE of friend.; > 8 │ let a = photo of cool person; │ ^^^^^^^^^^^^^^^^^^^^^^ 9 │ let a = picture of cool person; 10 │ let a = image of cool person; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:9:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 7 │ let a = imAGE of friend.; 8 │ let a = photo of cool person; > 9 │ let a = picture of cool person; │ ^^^^^^^^^^^^^^^^^^^^^^^^ 10 │ let a = image of cool person; 11 │ let a = image of cool person; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:10:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 8 │ let a = photo of cool person; 9 │ let a = picture of cool person; > 10 │ let a = image of cool person; │ ^^^^^^^^^^^^^^^^^^^^^^ 11 │ let a = image of cool person; 12 │ let a = photo; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:11:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 9 │ let a = picture of cool person; 10 │ let a = image of cool person; > 11 │ let a = image of cool person; │ ^^^^^^^^^^^^^^^^^^^^^^ 12 │ let a = photo; 13 │ let a = image; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:12:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 10 │ let a = image of cool person; 11 │ let a = image of cool person; > 12 │ let a = photo; │ ^^^^^^^ 13 │ let a = image; 14 │ let a = picture; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:13:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 11 │ let a = image of cool person; 12 │ let a = photo; > 13 │ let a = image; │ ^^^^^^^ 14 │ let a = picture; 15 │ let a = {`picture; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:14:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 12 │ let a = photo; 13 │ let a = image; > 14 │ let a = picture; │ ^^^^^^^^^ 15 │ let a = {`picture; 16 │ let a = {`photo; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:15:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 13 │ let a = image; 14 │ let a = picture; > 15 │ let a = {`picture; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16 │ let a = {`photo; 17 │ let a = {`image; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:16:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 14 │ let a = picture; 15 │ let a = {`picture; > 16 │ let a = {`photo; │ ^^^^^^^^^^^^^^^^^^^^^^^^^ 17 │ let a = {`image; 18 │ let a = {`picture; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:17:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 15 │ let a = {`picture; 16 │ let a = {`photo; > 17 │ let a = {`image; │ ^^^^^^^^^^^^^^^^^^^^^^^^^ 18 │ let a = {`picture; 19 │ let a = {`photo; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:18:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 16 │ let a = {`photo; 17 │ let a = {`image; > 18 │ let a = {`picture; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 19 │ let a = {`photo; 20 │ let a = {`image; i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:19:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 17 │ let a = {`image; 18 │ let a = {`picture; > 19 │ let a = {`photo; │ ^^^^^^^^^^^^^^^^^^^^^^^^ 20 │ let a = {`image; 21 │ i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ``` ``` invalid.jsx:20:18 lint/a11y/noRedundantAlt ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid the words "image", "picture", or "photo" in img element alt text. 18 │ let a = {`picture; 19 │ let a = {`photo; > 20 │ let a = {`image; │ ^^^^^^^^^^^^^^^^^^^^^^^^ 21 │ i Screen readers announce img elements as "images", so it is not necessary to redeclare this in alternative text. ```