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

react/no-unknown-property incorrect for on none label tag detection #2204

Closed
a-x- opened this issue Mar 17, 2019 · 2 comments
Closed

react/no-unknown-property incorrect for on none label tag detection #2204

a-x- opened this issue Mar 17, 2019 · 2 comments

Comments

@a-x-
Copy link

a-x- commented Mar 17, 2019

I have a Table.Index component with for prop.

the rule enforces me to use htmlFor instead and incorrectly auto replaces it when I run eslint --fix

@ljharb
Copy link
Member

ljharb commented Mar 17, 2019

Hmm, this rule should be ignoring non-DOM elements. Can you provide the full code and full warning text?

@a-x-
Copy link
Author

a-x- commented Mar 18, 2019

function Foo ({ collection }) {
return <Table.Index for={ collection } />;
}

golopot added a commit to golopot/eslint-plugin-react that referenced this issue Mar 19, 2019
ljharb pushed a commit to golopot/eslint-plugin-react that referenced this issue Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants