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

Allow react-intl’s usage of style prop #29

Merged
merged 2 commits into from
Apr 3, 2021

Conversation

tusbar
Copy link
Contributor

@tusbar tusbar commented Apr 2, 2021

Update react/style-prop-object rule to allow react-intl’s usage of the style prop in the FormattedNumber component, which is to be used as such:

<FormattedNumber value={0.42} style='percent' />

I originally implemented this in eslint-config-xo-nextjs, which extends this configuration, but I believe it’s more suitable here.

Also, this repository doesn’t have any test or linter, I have added some tests in the aforementioned repository that lints some fixtures using xo’s lintFile.

Maybe something similar could be implemented in this repo.

@sindresorhus sindresorhus merged commit a17e7f6 into xojs:main Apr 3, 2021
@tusbar tusbar deleted the react-intl-formatted-number branch April 5, 2021 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants