Skip to content

Commit

Permalink
[Docs] jsx-props-no-spreading: fix typo to use correct rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jonggyun authored and ljharb committed Jan 20, 2020
1 parent f9aee94 commit 45b9d32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/rules/jsx-props-no-spreading.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ const {one_prop, two_prop} = otherProps;
<img src={src} alt={alt} />
```


## Rule Options

```js
...
"react/jsx-props-no-spreading": [{
"react/jsx-props-no-spreading": [<enabled>, {
"html": "ignore" | "enforce",
"custom": "ignore" | "enforce",
"explicitSpread": "ignore" | "enforce",
Expand Down Expand Up @@ -62,6 +61,7 @@ The following patterns are **not** considered warnings when `custom` is set to `
```

The following patterns are still considered warnings:

```jsx
<img {...props} />
```
Expand Down Expand Up @@ -93,6 +93,7 @@ const {src, alt} = props;
```

The following patterns are considered warnings:

```jsx
<MyCustomComponent {...props} />
```
Expand All @@ -111,6 +112,7 @@ const {one_prop, two_prop} = otherProps;
```

The following patterns are considered warnings:

```jsx
<img {...props} />
```
Expand Down

0 comments on commit 45b9d32

Please sign in to comment.