Bump Prettier to 1.13.4 on xplat
Summary: @public Bump Prettier to use version 1.13.4 All code changes are caused by running Prettier and should only affect files that have an `format` header. All other changes caused by yarn. Reviewed By: ryanmce Differential Revision: D8251255 fbshipit-source-id: 0b4445c35f1269d72730f2000002a27c1bc35914
This commit is contained in:
committed by
Facebook Github Bot
parent
eb7cb11ffd
commit
b47f0ce41a
@@ -61,7 +61,7 @@ for (let [name, results] of testResults) {
|
|||||||
|
|
||||||
for (let [type, result] of results) {
|
for (let [type, result] of results) {
|
||||||
console.log(
|
console.log(
|
||||||
` - ${type}: ${result}ms (${Math.round(result / min * 10000) / 100}%)`,
|
` - ${type}: ${result}ms (${Math.round((result / min) * 10000) / 100}%)`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -31,6 +31,6 @@
|
|||||||
"develop": "gatsby develop"
|
"develop": "gatsby develop"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "1.12.1"
|
"prettier": "1.13.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -336,8 +336,7 @@ export default class Editor extends Component<Props> {
|
|||||||
icon="plus-circle-o"
|
icon="plus-circle-o"
|
||||||
disabled={!Boolean(this.props.onAdd)}
|
disabled={!Boolean(this.props.onAdd)}
|
||||||
onClick={this.props.onAdd}
|
onClick={this.props.onAdd}
|
||||||
type="primary"
|
type="primary">
|
||||||
>
|
|
||||||
add child node
|
add child node
|
||||||
</Button>
|
</Button>
|
||||||
</Col>
|
</Col>
|
||||||
@@ -346,8 +345,7 @@ export default class Editor extends Component<Props> {
|
|||||||
icon="close-circle-o"
|
icon="close-circle-o"
|
||||||
disabled={!Boolean(this.props.onRemove)}
|
disabled={!Boolean(this.props.onRemove)}
|
||||||
onClick={this.props.onRemove}
|
onClick={this.props.onRemove}
|
||||||
type="danger"
|
type="danger">
|
||||||
>
|
|
||||||
remove node
|
remove node
|
||||||
</Button>
|
</Button>
|
||||||
</Col>
|
</Col>
|
||||||
|
@@ -154,7 +154,7 @@ export default class Playground extends Component<Props, State> {
|
|||||||
modifyAtPath(
|
modifyAtPath(
|
||||||
path: Array<any>,
|
path: Array<any>,
|
||||||
value: any,
|
value: any,
|
||||||
selectedNodePath?: ?Array<number> = this.state.selectedNodePath
|
selectedNodePath?: ?Array<number> = this.state.selectedNodePath,
|
||||||
) {
|
) {
|
||||||
// $FlowFixMe
|
// $FlowFixMe
|
||||||
const layoutDefinition = setIn(this.state.layoutDefinition, path, value);
|
const layoutDefinition = setIn(this.state.layoutDefinition, path, value);
|
||||||
@@ -169,7 +169,7 @@ export default class Playground extends Component<Props, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getHash = (
|
getHash = (
|
||||||
layoutDefinition: LayoutRecordT = this.state.layoutDefinition
|
layoutDefinition: LayoutRecordT = this.state.layoutDefinition,
|
||||||
): string =>
|
): string =>
|
||||||
btoa(JSON.stringify(this.removeUnchangedProperties(layoutDefinition)));
|
btoa(JSON.stringify(this.removeUnchangedProperties(layoutDefinition)));
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ export default class Playground extends Component<Props, State> {
|
|||||||
this.state.selectedNodePath || []
|
this.state.selectedNodePath || []
|
||||||
).reduce(
|
).reduce(
|
||||||
(node: LayoutRecordT, cv) => node.children.get(cv),
|
(node: LayoutRecordT, cv) => node.children.get(cv),
|
||||||
this.state.layoutDefinition
|
this.state.layoutDefinition,
|
||||||
);
|
);
|
||||||
return selectedNode ? selectedNode.children.size : 0;
|
return selectedNode ? selectedNode.children.size : 0;
|
||||||
};
|
};
|
||||||
@@ -226,8 +226,7 @@ export default class Playground extends Component<Props, State> {
|
|||||||
style={{height, maxHeight: height}}
|
style={{height, maxHeight: height}}
|
||||||
ref={ref => {
|
ref={ref => {
|
||||||
this._containerRef = ref;
|
this._containerRef = ref;
|
||||||
}}
|
}}>
|
||||||
>
|
|
||||||
<YogaNode
|
<YogaNode
|
||||||
layoutDefinition={layoutDefinition}
|
layoutDefinition={layoutDefinition}
|
||||||
selectedNodePath={selectedNodePath}
|
selectedNodePath={selectedNodePath}
|
||||||
@@ -252,8 +251,7 @@ export default class Playground extends Component<Props, State> {
|
|||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
href={`/playground#${this.getHash()}`}
|
href={`/playground#${this.getHash()}`}
|
||||||
type="primary"
|
type="primary">
|
||||||
>
|
|
||||||
Open Playground
|
Open Playground
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
@@ -297,7 +295,7 @@ export default class Playground extends Component<Props, State> {
|
|||||||
<div>
|
<div>
|
||||||
{this.props.renderSidebar(
|
{this.props.renderSidebar(
|
||||||
layoutDefinition.getIn(getPath(selectedNodePath)),
|
layoutDefinition.getIn(getPath(selectedNodePath)),
|
||||||
this.onChangeLayout
|
this.onChangeLayout,
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{playground}
|
{playground}
|
||||||
|
@@ -6862,9 +6862,9 @@ preserve@^0.2.0:
|
|||||||
version "0.2.0"
|
version "0.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
||||||
|
|
||||||
prettier@1.12.1:
|
prettier@1.13.4:
|
||||||
version "1.12.1"
|
version "1.13.4"
|
||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.4.tgz#31bbae6990f13b1093187c731766a14036fa72e6"
|
||||||
|
|
||||||
pretty-bytes@^4.0.2:
|
pretty-bytes@^4.0.2:
|
||||||
version "4.0.2"
|
version "4.0.2"
|
||||||
|
Reference in New Issue
Block a user