Skip to content
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 gives a false positive with spaces? #306

Open
OneOfOne opened this issue Jan 10, 2022 · 0 comments
Open

no-raw-text gives a false positive with spaces? #306

OneOfOne opened this issue Jan 10, 2022 · 0 comments

Comments

@OneOfOne
Copy link

<Text style={{ fontSize: 11, fontWeight: '400', textAlign: 'left' }}>
					<Icon {...styles.xxsIcon} name="clock-circle" /> <Moment date={msg.timestamp || '10'} element={Text} unix calendar/> <Icon {...styles.xxsIcon} name="arrow-right" />{getMsgType(msg)}
				</Text>

Gives 2x Whitespace(s) cannot be used outside of a <Text> tag.

Which is wrong, however I can't workaround it with skip:

'react-native/no-raw-text': [ 'error', { 'skip': [ 'Text.Icon', 'Text.Moment', 'Text.Text', 'Icon', 'Moment', 'Text' ]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant