Fix: Make max-len ignoreStrings ignore JSXText (fixes #9954) #9985
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
What changes did you make? (Give an overview)
Is there anything you'd like reviewers to focus on?
The text was updated successfully, but these errors were encountered:
I am not sure if it is desired behavior but I think
var foo = <div className="this is a very long string"> short </div>;
should be ignored but
var foo = <div>this is another very long string</div>;
should not be ignored (since this case is more avoidable and we usually expect strings to be in quotes)
How about an additional check if the token is surrounded by quotes?
Looked into this a little more, and given the description of the option (
I think we might be able to just check if the