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