Skip to content

False positive for react/button-has-type #1847

Closed
@remcohaszing

Description

@remcohaszing

The following code triggers react/button-has-type.

document.createElement('button')

The culprit is in this function: https://github.com/yannickcr/eslint-plugin-react/blob/master/lib/rules/button-has-type.js#L15..L20

This should also check for the pragma setting.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions