Skip to content

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 e81d677 commit 18b9dbd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions addons/isl/src/ComparisonView/ComparisonView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function ComparisonViewHeader({comparison}: {comparison: Comparison}) {
...previous,
comparison: {
type: (event as React.FormEvent<HTMLSelectElement>).currentTarget
.value as typeof defaultComparisons[0],
.value as (typeof defaultComparisons)[0],
},
}))
}>
Expand All @@ -185,7 +185,7 @@ function ComparisonViewHeader({comparison}: {comparison: Comparison}) {
<T>{labelForComparison({type: comparison})}</T>
</VSCodeOption>
))}
{!defaultComparisons.includes(comparison.type as typeof defaultComparisons[0]) ? (
{!defaultComparisons.includes(comparison.type as (typeof defaultComparisons)[0]) ? (
<VSCodeOption value={comparison.type} key={comparison.type}>
<T>{labelForComparison(comparison)}</T>
</VSCodeOption>
Expand Down
2 changes: 1 addition & 1 deletion addons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-rulesdir": "^0.2.1",
"prettier": "2.7.1"
"prettier": "2.8.8"
},
"scripts": {
"prettier-check": "prettier --check .",
Expand Down
2 changes: 1 addition & 1 deletion addons/textmate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"jsonc-parser": "^2.2.1",
"minimist": "^1.2.8",
"monaco-editor": "^0.21.2",
"prettier": "2.7.1",
"prettier": "2.8.8",
"typescript": "^4.5.5"
}
}
2 changes: 1 addition & 1 deletion addons/vscode/__mocks__/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function proxyMissingFieldsWithJestFn<T extends object>(t: T): T {
return t[key];
}
// make sure we keep the jest.fn() we make so it's not remade each time
t[key] = jest.fn().mockReturnValue(new Disposable()) as unknown as typeof t[keyof T];
t[key] = jest.fn().mockReturnValue(new Disposable()) as unknown as (typeof t)[keyof T];
return t[key];
}) as unknown as ProxyHandler<T>['get'],
});
Expand Down
8 changes: 4 additions & 4 deletions addons/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9251,10 +9251,10 @@ prelude-ls@~1.1.2:
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz"
integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==

prettier@2.7.1:
version "2.7.1"
resolved "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz"
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.3.0, pretty-bytes@^5.4.1:
version "5.6.0"
Expand Down

0 comments on commit 18b9dbd

Please sign in to comment.