Skip to content

Commit

Permalink
Fix docs for button-has-type
Browse files Browse the repository at this point in the history
Looks like a copy&pasta error.

Ref jsx-eslint#1525
  • Loading branch information
jzaefferer committed Nov 13, 2017
1 parent 4f3fc51 commit c3a201d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/button-has-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var Hello = React.createElement('button', {type: 'reset'}, 'Hello')

```js
...
"react/default-props-match-prop-types": [<enabled>, {
"react/react/button-has-type": [<enabled>, {
"button": <boolean>,
"submit": <boolean>,
"reset": <boolean>
Expand All @@ -45,7 +45,7 @@ var Hello = React.createElement('button', {type: 'reset'}, 'Hello')

You can forbid particular type attribute values by passing `false` as corresponding option (by default all of them are `true`).

The following patterns are considered errors when using `"react/default-props-match-prop-types": ["error", {reset: false}]`:
The following patterns are considered errors when using `"react/react/button-has-type": ["error", {reset: false}]`:

```jsx
var Hello = <button type="reset">Hello</button>
Expand Down

0 comments on commit c3a201d

Please sign in to comment.