Allow react-intl’s usage of style prop #29
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update
react/style-prop-object
rule to allow react-intl’s usage of thestyle
prop in theFormattedNumber
component, which is to be used as such: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.