From e2821bf00f954e24dae528c64069270d10b2b3ff Mon Sep 17 00:00:00 2001 From: Pieter Vanderwerff Date: Tue, 6 Jun 2023 20:06:25 -0700 Subject: [PATCH] Update prettier to v2.8.8 Summary: X-link: https://github.com/facebook/react-native/pull/37738 Upgrade Prettier to the latest stable version, 2.8.8. Reviewed By: SamChou19815 Differential Revision: D46403769 fbshipit-source-id: 551d64db0b701a8d3f275900dd8f6324c115a3e6 --- app/package.json | 2 +- app/src/types/example.ts | 2 +- app/src/utils/Measurement.ts | 2 +- app/yarn.lock | 8 ++++---- .../example/src/utils/Measurement.ts | 2 +- react-native-pytorch-core/package.json | 2 +- react-native-pytorch-core/yarn.lock | 8 ++++---- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/package.json b/app/package.json index 52b4f35fc..fd6267962 100644 --- a/app/package.json +++ b/app/package.json @@ -87,7 +87,7 @@ "eslint-plugin-prettier": "^3.1.3", "jest": "^26.6.3", "patch-package": "^6.4.7", - "prettier": "2.7.1", + "prettier": "2.8.8", "react-test-renderer": "17.0.1", "rimraf": "^3.0.2", "typescript": "^4.6.3" diff --git a/app/src/types/example.ts b/app/src/types/example.ts index 2d078717f..daad951ad 100644 --- a/app/src/types/example.ts +++ b/app/src/types/example.ts @@ -27,4 +27,4 @@ export const ExampleCategories = [ 'Game', ] as const; -export type ExampleCategory = typeof ExampleCategories[number]; +export type ExampleCategory = (typeof ExampleCategories)[number]; diff --git a/app/src/utils/Measurement.ts b/app/src/utils/Measurement.ts index 663ea492c..7d75819d1 100644 --- a/app/src/utils/Measurement.ts +++ b/app/src/utils/Measurement.ts @@ -14,7 +14,7 @@ const performance = global.performance; const marks = ['inference', 'pack', 'unpack'] as const; -type Mark = typeof marks[number]; +type Mark = (typeof marks)[number]; type Measures = {[key in Mark]: number}; diff --git a/app/yarn.lock b/app/yarn.lock index 85e10276c..d9412fba0 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -8123,10 +8123,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== +prettier@2.8.8: + version "2.8.8" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" + integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== pretty-bytes@5.6.0: version "5.6.0" diff --git a/react-native-pytorch-core/example/src/utils/Measurement.ts b/react-native-pytorch-core/example/src/utils/Measurement.ts index c7f5336af..210cb1133 100644 --- a/react-native-pytorch-core/example/src/utils/Measurement.ts +++ b/react-native-pytorch-core/example/src/utils/Measurement.ts @@ -13,7 +13,7 @@ declare var performance: any; const marks = ['inference', 'pack', 'unpack'] as const; -type Mark = typeof marks[number]; +type Mark = (typeof marks)[number]; type Measures = {[key in Mark]: number}; diff --git a/react-native-pytorch-core/package.json b/react-native-pytorch-core/package.json index 7344294b0..7ff0bf848 100644 --- a/react-native-pytorch-core/package.json +++ b/react-native-pytorch-core/package.json @@ -69,7 +69,7 @@ "husky": "^6.0.0", "jest": "^27.0.6", "pod-install": "^0.1.0", - "prettier": "2.7.1", + "prettier": "2.8.8", "react": "17.0.1", "react-native": "0.64.3", "react-native-builder-bob": "^0.18.1", diff --git a/react-native-pytorch-core/yarn.lock b/react-native-pytorch-core/yarn.lock index 62e95123a..a8a767e08 100644 --- a/react-native-pytorch-core/yarn.lock +++ b/react-native-pytorch-core/yarn.lock @@ -7426,10 +7426,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== +prettier@2.8.8: + version "2.8.8" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" + integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== prettier@^2.0.2: version "2.3.2"