Match xplat/yoga/javascript prettier conventions

Summary:
Match Prettier config to match other Meta OSS projects

Didn't update the test generator to use this form yet.

Reviewed By: yungsters

Differential Revision: D45570415

fbshipit-source-id: d5fd791b047debf41c28aecac75fb8dde16da3e3
This commit is contained in:
Nick Gerleman
2023-05-09 15:35:42 -07:00
committed by Facebook GitHub Bot
parent 0cb4a49d38
commit 0a6a581936
29 changed files with 197 additions and 199 deletions

View File

@@ -7,8 +7,8 @@
* @format
*/
import type { MeasureFunction } from "yoga-layout";
import { Yoga } from "./globals";
import type {MeasureFunction} from 'yoga-layout';
import {Yoga} from './globals';
export type MeasureCounter = {
inc: MeasureFunction;
@@ -18,7 +18,7 @@ export type MeasureCounter = {
export function getMeasureCounter(
cb?: MeasureFunction | null,
staticWidth = 0,
staticHeight = 0
staticHeight = 0,
): MeasureCounter {
let counter = 0;
@@ -28,7 +28,7 @@ export function getMeasureCounter(
return cb
? cb(width, widthMode, height, heightMode)
: { width: staticWidth, height: staticHeight };
: {width: staticWidth, height: staticHeight};
},
get: function () {
@@ -44,7 +44,7 @@ export function getMeasureCounterMax(): MeasureCounter {
const measuredHeight =
heightMode === Yoga.MEASURE_MODE_UNDEFINED ? 10 : height;
return { width: measuredWidth, height: measuredHeight };
return {width: measuredWidth, height: measuredHeight};
});
}
@@ -61,6 +61,6 @@ export function getMeasureCounterMin(): MeasureCounter {
? 10
: height;
return { width: measuredWidth, height: measuredHeight };
return {width: measuredWidth, height: measuredHeight};
});
}