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,731 forks)batch import
acceptedhelp wantednew rule

Repository metrics

Stars
 (9,293 stars)
PR merge metrics
 (PR metrics pending)

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