jsx-eslint/eslint-plugin-react

Rule suggestion: Prevent invalid HTML DOM element name to be used

Open

#1,752 opened on Mar 30, 2018

 (7 comments) (0 reactions) (0 assignees)JavaScript (2,734 forks)batch import
acceptedhelp wantednew rule

Repository metrics

Stars
 (9,294 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

It would be nice if invalid DOM element name is detectable. How about this rule?

valid:

<div>{ 'bar' }</div>

invalid:

<foo>{ 'bar' }</foo>

Contributor guide