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

@@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
import { Yoga } from "./tools/globals";
import { getMeasureCounter } from "./tools/MeasureCounter";
import {Yoga} from './tools/globals';
import {getMeasureCounter} from './tools/MeasureCounter';
test("dont_measure_single_grow_shrink_child", () => {
test('dont_measure_single_grow_shrink_child', () => {
const root = Yoga.Node.create();
root.setWidth(100);
root.setHeight(100);
@@ -27,11 +27,11 @@ test("dont_measure_single_grow_shrink_child", () => {
root.freeRecursive();
});
test("dont_fail_with_incomplete_measure_dimensions", () => {
test('dont_fail_with_incomplete_measure_dimensions', () => {
// @ts-expect-error Testing bad usage
const heightOnlyCallback = getMeasureCounter(() => ({ height: 10 }));
const heightOnlyCallback = getMeasureCounter(() => ({height: 10}));
// @ts-expect-error Testing bad usage
const widthOnlyCallback = getMeasureCounter(() => ({ width: 10 }));
const widthOnlyCallback = getMeasureCounter(() => ({width: 10}));
// @ts-expect-error Testing bad usage
const emptyCallback = getMeasureCounter(() => ({}));