-
Notifications
You must be signed in to change notification settings - Fork 130
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
no raw text rule fail #266
Comments
Did this happen after the latest release? |
Same issue here. Indeed after upgrading to 3.9.0 |
This seems to be related with #247 . This PR was created to allow components that use dot notation to work (ie: This happens in this function: eslint-plugin-react-native/lib/rules/no-raw-text.js Lines 10 to 24 in 886999a
Changing this section fixes the problem: traverse(element, {
JSXIdentifier({ node: identifier }) {
if (identifier.parent.type === 'JSXOpeningElement' || identifier.parent.type === 'JSXMemberExpression') {
identifiers.push(identifier.name);
}
},
}, scope); I'll make some more tests and send a new PR to fix this issue. |
this is my test code, line
text1
is ok, buttext2
use style props is failThe text was updated successfully, but these errors were encountered: