Skip to content

Commit 45b9d32

Browse files
jonggyunljharb
authored andcommitted
[Docs] jsx-props-no-spreading: fix typo to use correct rule
1 parent f9aee94 commit 45b9d32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/rules/jsx-props-no-spreading.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ const {one_prop, two_prop} = otherProps;
2121
<img src={src} alt={alt} />
2222
```
2323

24-
2524
## Rule Options
2625

2726
```js
2827
...
29-
"react/jsx-props-no-spreading": [{
28+
"react/jsx-props-no-spreading": [<enabled>, {
3029
"html": "ignore" | "enforce",
3130
"custom": "ignore" | "enforce",
3231
"explicitSpread": "ignore" | "enforce",
@@ -62,6 +61,7 @@ The following patterns are **not** considered warnings when `custom` is set to `
6261
```
6362

6463
The following patterns are still considered warnings:
64+
6565
```jsx
6666
<img {...props} />
6767
```
@@ -93,6 +93,7 @@ const {src, alt} = props;
9393
```
9494

9595
The following patterns are considered warnings:
96+
9697
```jsx
9798
<MyCustomComponent {...props} />
9899
```
@@ -111,6 +112,7 @@ const {one_prop, two_prop} = otherProps;
111112
```
112113

113114
The following patterns are considered warnings:
115+
114116
```jsx
115117
<img {...props} />
116118
```

0 commit comments

Comments
 (0)