-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
jsx-no-literals proposal #3003
Comments
I am also confused by
I would be in favor of something like this. Instead of an "allowlist" of props to check this rule for though, I think I'd prefer a "disallowlist" of props that would be omitted from this rule, though perhaps we can have both? |
There's a bit of overlap, but I'm not sure what the confusion is. It seems like the OP wants a way to inclusion-list props to check, presumably by component. That's something we could add, but the interaction with other rule options will be tricky. |
Thanks for the response.
WDYT?
It seems they are responsible for the same, so not sure why there are two... but maybe it's just me. UPD if we want to do this based on component we can do something like this:
|
|
My use case: I want to catch untranslated strings, for example
which is supported, but also want to allow:
My proposal is to add config of props to be checked and default value can be:
WDYT?
PS I'm a bit confused by
ignoreProps
vsnoAttributeStrings
.The text was updated successfully, but these errors were encountered: