In addition to jsx attr configuration, add object key config #17
Closed
coreylight
started this conversation in
Ideas
Replies: 2 comments
-
I think it's a good idea. We would happily accept PR on this. I think it should be a separate setting (not related to attributes) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Opened a PR #20 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have the
ignoreAttribute
option which is great and highly needed.I have written codemods to automatically wrap strings in lingui components, and in my codemod I additionally check against a whitelist of object keys such as:
where
id
is opted out of the no-unlocalized lint ruleThis is very similar to jsx attrs.
What do we think about including extra code to allow this config? Or apply the attrs config to objects too?
Beta Was this translation helpful? Give feedback.
All reactions