no-unlocalized-strings
should ignore string keys for dereferencing object values
#38
Labels
no-unlocalized-strings
should ignore string keys for dereferencing object values
#38
Here's a simple example illustrating what I think should not be flagged by the
no-unlocalized-strings
ruleAs shown above, in a case where I need to get a value from an Object using the syntax
obj[key]
with a literal string, I believe it's a case where the string should never be flagged by the rule. Arguably, the second example with aMap
also applies, though at least there's a way to get around this usingignoreFunction
.Somewhat related though arguably separate, I did try using
ignoreProperty
, but doesn't work for nested keys. I am dealing with an object like the following.The text was updated successfully, but these errors were encountered: