Skip to content

Commit 9f76459

Browse files
committed
[Docs] prefer-stateless-function: fix docs for ignorePureComponents option.
Per https://github.com/yannickcr/eslint-plugin-react/pull/781/files#r76556839
1 parent 80fd8e1 commit 9f76459

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/prefer-stateless-function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ class Foo extends React.Component {
5050

5151
```js
5252
...
53-
"prefer-stateless-function": [<enabled>, { "ignorePureComponent": <ignorePureComponent> }]
53+
"prefer-stateless-function": [<enabled>, { "ignorePureComponents": <ignorePureComponents> }]
5454
...
5555
```
5656

5757
* `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
58-
* `ignorePureComponent`: optional boolean set to `true` to ignore components extending from `React.PureComponent` (default to `false`).
58+
* `ignorePureComponents`: optional boolean set to `true` to ignore components extending from `React.PureComponent` (default to `false`).
5959

60-
### `ignorePureComponent`
60+
### `ignorePureComponents`
6161

6262
When `true` the rule will ignore Components extending from `React.PureComponent` that use `this.props` or `this.context`.
6363

0 commit comments

Comments
 (0)