Skip to content

Commit 72d7815

Browse files
authored
Merge pull request #1534 from sevenval/button-has-type-readme
Fix docs for button-has-type
2 parents 4f3fc51 + ad514b3 commit 72d7815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/button-has-type.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var Hello = React.createElement('button', {type: 'reset'}, 'Hello')
3535

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

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

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

5050
```jsx
5151
var Hello = <button type="reset">Hello</button>

0 commit comments

Comments
 (0)