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) {
|
||||
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"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "1.12.1"
|
||||
"prettier": "1.13.4"
|
||||
}
|
||||
}
|
||||
|
@@ -336,8 +336,7 @@ export default class Editor extends Component<Props> {
|
||||
icon="plus-circle-o"
|
||||
disabled={!Boolean(this.props.onAdd)}
|
||||
onClick={this.props.onAdd}
|
||||
type="primary"
|
||||
>
|
||||
type="primary">
|
||||
add child node
|
||||
</Button>
|
||||
</Col>
|
||||
@@ -346,8 +345,7 @@ export default class Editor extends Component<Props> {
|
||||
icon="close-circle-o"
|
||||
disabled={!Boolean(this.props.onRemove)}
|
||||
onClick={this.props.onRemove}
|
||||
type="danger"
|
||||
>
|
||||
type="danger">
|
||||
remove node
|
||||
</Button>
|
||||
</Col>
|
||||
|
@@ -154,7 +154,7 @@ export default class Playground extends Component<Props, State> {
|
||||
modifyAtPath(
|
||||
path: Array<any>,
|
||||
value: any,
|
||||
selectedNodePath?: ?Array<number> = this.state.selectedNodePath
|
||||
selectedNodePath?: ?Array<number> = this.state.selectedNodePath,
|
||||
) {
|
||||
// $FlowFixMe
|
||||
const layoutDefinition = setIn(this.state.layoutDefinition, path, value);
|
||||
@@ -169,7 +169,7 @@ export default class Playground extends Component<Props, State> {
|
||||
}
|
||||
|
||||
getHash = (
|
||||
layoutDefinition: LayoutRecordT = this.state.layoutDefinition
|
||||
layoutDefinition: LayoutRecordT = this.state.layoutDefinition,
|
||||
): string =>
|
||||
btoa(JSON.stringify(this.removeUnchangedProperties(layoutDefinition)));
|
||||
|
||||
@@ -206,7 +206,7 @@ export default class Playground extends Component<Props, State> {
|
||||
this.state.selectedNodePath || []
|
||||
).reduce(
|
||||
(node: LayoutRecordT, cv) => node.children.get(cv),
|
||||
this.state.layoutDefinition
|
||||
this.state.layoutDefinition,
|
||||
);
|
||||
return selectedNode ? selectedNode.children.size : 0;
|
||||
};
|
||||
@@ -226,8 +226,7 @@ export default class Playground extends Component<Props, State> {
|
||||
style={{height, maxHeight: height}}
|
||||
ref={ref => {
|
||||
this._containerRef = ref;
|
||||
}}
|
||||
>
|
||||
}}>
|
||||
<YogaNode
|
||||
layoutDefinition={layoutDefinition}
|
||||
selectedNodePath={selectedNodePath}
|
||||
@@ -252,8 +251,7 @@ export default class Playground extends Component<Props, State> {
|
||||
) : (
|
||||
<Button
|
||||
href={`/playground#${this.getHash()}`}
|
||||
type="primary"
|
||||
>
|
||||
type="primary">
|
||||
Open Playground
|
||||
</Button>
|
||||
)}
|
||||
@@ -297,7 +295,7 @@ export default class Playground extends Component<Props, State> {
|
||||
<div>
|
||||
{this.props.renderSidebar(
|
||||
layoutDefinition.getIn(getPath(selectedNodePath)),
|
||||
this.onChangeLayout
|
||||
this.onChangeLayout,
|
||||
)}
|
||||
</div>
|
||||
{playground}
|
||||
|
@@ -6862,9 +6862,9 @@ preserve@^0.2.0:
|
||||
version "0.2.0"
|
||||
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
||||
|
||||
prettier@1.12.1:
|
||||
version "1.12.1"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325"
|
||||
prettier@1.13.4:
|
||||
version "1.13.4"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.4.tgz#31bbae6990f13b1093187c731766a14036fa72e6"
|
||||
|
||||
pretty-bytes@^4.0.2:
|
||||
version "4.0.2"
|
||||
|
Reference in New Issue
Block a user