Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid globals in JSX tags #32

Open
constgen opened this issue Aug 30, 2019 · 1 comment
Open

Avoid globals in JSX tags #32

constgen opened this issue Aug 30, 2019 · 1 comment
Labels
rule Validation rule

Comments

@constgen
Copy link
Contributor

This rule should prevent using global variable in JSX tag names, e.g.

This should fail

<Symbol name="%" />
<Number>897877</Number>

And this should success

import {Number} from './format'
import Symbol from './Symbol'

<Symbol name="%" />
<Number>897877</Number>
@constgen constgen added the rule Validation rule label Aug 30, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.75. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Validation rule
Projects
None yet
Development

No branches or pull requests

1 participant