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

@ -75,8 +75,8 @@ var Image = createReactClass({
*/ */
blurRadius: PropTypes.number, blurRadius: PropTypes.number,
/** /**
* See https://facebook.github.io/react-native/docs/image.html#defaultsource * See https://facebook.github.io/react-native/docs/image.html#defaultsource
*/ */
defaultSource: PropTypes.number, defaultSource: PropTypes.number,
/** /**
* See https://facebook.github.io/react-native/docs/image.html#loadingindicatorsource * See https://facebook.github.io/react-native/docs/image.html#loadingindicatorsource
@ -123,7 +123,13 @@ var Image = createReactClass({
* *
* See https://facebook.github.io/react-native/docs/image.html#resizemode * 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: { statics: {
@ -254,9 +260,7 @@ var Image = createReactClass({
), ),
src: sources, src: sources,
headers: source.headers, headers: source.headers,
defaultSrc: defaultSource defaultSrc: defaultSource ? defaultSource.uri : null,
? defaultSource.uri
: null,
loadingIndicatorSrc: loadingIndicatorSource loadingIndicatorSrc: loadingIndicatorSource
? loadingIndicatorSource.uri ? loadingIndicatorSource.uri
: null, : null,

View File

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

View File

@ -103,14 +103,16 @@ export type ____TransformStyle_Internal = $ReadOnly<{|
| {|+translateX: number | AnimatedNode|} | {|+translateX: number | AnimatedNode|}
| {|+translateY: number | AnimatedNode|} | {|+translateY: number | AnimatedNode|}
| {| | {|
+translate: [number | AnimatedNode, number | AnimatedNode] | AnimatedNode, +translate:
|} | [number | AnimatedNode, number | AnimatedNode]
| AnimatedNode,
|}
| {|+skewX: string|} | {|+skewX: string|}
| {|+skewY: string|} | {|+skewY: string|}
// TODO: what is the actual type it expects? // TODO: what is the actual type it expects?
| {| | {|
+matrix: $ReadOnlyArray<number | AnimatedNode> | AnimatedNode, +matrix: $ReadOnlyArray<number | AnimatedNode> | AnimatedNode,
|}, |},
>, >,
|}>; |}>;

View File

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