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

IllustrationProps "style" attribute raises a jsx-eslint warning #371

Closed
mperrando opened this issue Sep 8, 2022 · 1 comment · Fixed by #411
Closed

IllustrationProps "style" attribute raises a jsx-eslint warning #371

mperrando opened this issue Sep 8, 2022 · 1 comment · Fixed by #411
Assignees

Comments

@mperrando
Copy link

The name "style" of the attribute in

makes jsx-eslint to give the following warning

https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/style-prop-object.md

@veej
Copy link
Member

veej commented Sep 8, 2022

Hi @mperrando. You can selectively switch off the rule on specific elements with the allow config: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/style-prop-object.md#allow

Said so, it might make sense for us to avoid collisions by renaming the prop from style to something like kind (cc @gabro)

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

Successfully merging a pull request may close this issue.

3 participants