Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Update prettier to v2.8.8
Browse files Browse the repository at this point in the history
Summary:
X-link: facebook/react-native#37738

Upgrade Prettier to the latest stable version, 2.8.8.

Reviewed By: SamChou19815

Differential Revision: D46403769

fbshipit-source-id: 551d64db0b701a8d3f275900dd8f6324c115a3e6
  • Loading branch information
pieterv authored and facebook-github-bot committed Jun 7, 2023
1 parent 2c41ff3 commit e2821bf
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion app/src/types/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export const ExampleCategories = [
'Game',
] as const;

export type ExampleCategory = typeof ExampleCategories[number];
export type ExampleCategory = (typeof ExampleCategories)[number];
2 changes: 1 addition & 1 deletion app/src/utils/Measurement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
8 changes: 4 additions & 4 deletions app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==

[email protected]:
version "5.6.0"
Expand Down
2 changes: 1 addition & 1 deletion react-native-pytorch-core/example/src/utils/Measurement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
2 changes: 1 addition & 1 deletion react-native-pytorch-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions react-native-pytorch-core/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e2821bf

Please sign in to comment.