jsx-eslint/eslint-plugin-react

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

Open

#1,752 opened on Mar 30, 2018

View on GitHub
 (7 comments) (0 reactions) (0 assignees)JavaScript (2,797 forks)batch import
acceptedhelp wantednew rule

Repository metrics

Stars
 (8,630 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