Upgrade Prettier to v1.12.1 on fbsource

Reviewed By: benjaffe, ryanmce, yungsters

Differential Revision: D7652946

fbshipit-source-id: 396d45c675e93f2298cd2920d927630c81867447
This commit is contained in:
Peter van der Zee 2018-04-19 02:30:39 -07:00 committed by Facebook Github Bot
parent 7e824867ca
commit 3c0b8922e2
4 changed files with 22 additions and 14 deletions

View File

@ -123,7 +123,13 @@ var Image = createReactClass({
*
* See https://facebook.github.io/react-native/docs/image.html#resizemode
*/
resizeMode: PropTypes.oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']),
resizeMode: PropTypes.oneOf([
'cover',
'contain',
'stretch',
'repeat',
'center',
]),
},
statics: {
@ -254,9 +260,7 @@ var Image = createReactClass({
),
src: sources,
headers: source.headers,
defaultSrc: defaultSource
? defaultSource.uri
: null,
defaultSrc: defaultSource ? defaultSource.uri : null,
loadingIndicatorSrc: loadingIndicatorSource
? loadingIndicatorSource.uri
: null,

View File

@ -852,14 +852,14 @@ class VirtualizedList extends React.PureComponent<Props, State> {
);
}
} else if (ListEmptyComponent) {
const element: React.Element<any> = (React.isValidElement(
const element: React.Element<any> = ((React.isValidElement(
ListEmptyComponent,
) ? (
ListEmptyComponent
) : (
// $FlowFixMe
<ListEmptyComponent />
): any);
)): any);
cells.push(
React.cloneElement(element, {
key: '$empty',
@ -1670,7 +1670,9 @@ class CellRenderer extends React.Component<
? horizontal
? [{flexDirection: 'row-reverse'}, inversionStyle]
: [{flexDirection: 'column-reverse'}, inversionStyle]
: horizontal ? [{flexDirection: 'row'}, inversionStyle] : inversionStyle;
: horizontal
? [{flexDirection: 'row'}, inversionStyle]
: inversionStyle;
if (!CellRendererComponent) {
return (
<View style={cellStyle} onLayout={onLayout}>

View File

@ -103,7 +103,9 @@ export type ____TransformStyle_Internal = $ReadOnly<{|
| {|+translateX: number | AnimatedNode|}
| {|+translateY: number | AnimatedNode|}
| {|
+translate: [number | AnimatedNode, number | AnimatedNode] | AnimatedNode,
+translate:
| [number | AnimatedNode, number | AnimatedNode]
| AnimatedNode,
|}
| {|+skewX: string|}
| {|+skewY: string|}

View File

@ -209,7 +209,7 @@
"flow-bin": "^0.70.0",
"jest": "23.0.0-alpha.4",
"jest-junit": "3.6.0",
"prettier": "1.9.1",
"prettier": "1.12.1",
"react": "16.3.2",
"react-test-renderer": "16.3.2",
"shelljs": "^0.7.8",