Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo jsx-props-no-spreading document #2547

Merged
merged 1 commit into from Jan 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/rules/jsx-props-no-spreading.md
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