Update prettier and linter

This commit is contained in:
Nicolas Gallagher
2017-07-09 16:22:17 -07:00
parent f91ecaa81d
commit f6ad9c3afb
57 changed files with 402 additions and 342 deletions
@@ -21,7 +21,9 @@ class AspectRatio extends PureComponent {
return (
<View style={[styles.root, style]}>
<View style={[styles.shim, { paddingBottom: `${percentage}%` }]} />
<View style={StyleSheet.absoluteFill}>{children}</View>
<View style={StyleSheet.absoluteFill}>
{children}
</View>
</View>
);
}
@@ -30,7 +30,11 @@ class DeepTree extends Component {
</Box>
);
for (let i = 0; i < wrap; i++) {
result = <Box components={components}>{result}</Box>;
result = (
<Box components={components}>
{result}
</Box>
);
}
return result;
}
-1
View File
@@ -61,7 +61,6 @@ export class Tweet extends Component {
</AspectRatio>
</View>
: null}
</View>
<TweetActionsBar
@@ -45,7 +45,11 @@ export default class TweetAction extends React.Component {
]}
>
{getIcon(displayMode, highlighted)}
{count > 0 ? <Text style={styles.count}>{count}</Text> : null}
{count > 0
? <Text style={styles.count}>
{count}
</Text>
: null}
</Text>
</View>
);
+3 -1
View File
@@ -28,7 +28,9 @@ class UserNames extends PureComponent {
onPress={onPress}
style={[styles.root, style]}
>
<AppText color="normal" weight="bold">{fullName}</AppText>
<AppText color="normal" weight="bold">
{fullName}
</AppText>
{layout === 'stack' ? ' \u000A' : ' '}
<AppText color="deepGray" style={styles.screenName}>{`@${screenName}`}</AppText>
</AppText>
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = {
colors,
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif, ' +
'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', // emoji fonts
'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', // emoji fonts
fontSize,
lineHeight: 1.3125,
spaceX: 0.6,