diff --git a/addons/isl/src/ComparisonView/ComparisonView.tsx b/addons/isl/src/ComparisonView/ComparisonView.tsx index 5269b9fe79df2..dbf8d18d1db37 100644 --- a/addons/isl/src/ComparisonView/ComparisonView.tsx +++ b/addons/isl/src/ComparisonView/ComparisonView.tsx @@ -176,7 +176,7 @@ function ComparisonViewHeader({comparison}: {comparison: Comparison}) { ...previous, comparison: { type: (event as React.FormEvent).currentTarget - .value as typeof defaultComparisons[0], + .value as (typeof defaultComparisons)[0], }, })) }> @@ -185,7 +185,7 @@ function ComparisonViewHeader({comparison}: {comparison: Comparison}) { {labelForComparison({type: comparison})} ))} - {!defaultComparisons.includes(comparison.type as typeof defaultComparisons[0]) ? ( + {!defaultComparisons.includes(comparison.type as (typeof defaultComparisons)[0]) ? ( {labelForComparison(comparison)} diff --git a/addons/package.json b/addons/package.json index 997f460b7c76c..92861948d3b97 100644 --- a/addons/package.json +++ b/addons/package.json @@ -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 .", diff --git a/addons/textmate/package.json b/addons/textmate/package.json index 7e3720731b031..fd69d52faead1 100644 --- a/addons/textmate/package.json +++ b/addons/textmate/package.json @@ -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" } } diff --git a/addons/vscode/__mocks__/vscode.ts b/addons/vscode/__mocks__/vscode.ts index d419ee0f25d50..b7e79a6407a31 100644 --- a/addons/vscode/__mocks__/vscode.ts +++ b/addons/vscode/__mocks__/vscode.ts @@ -51,7 +51,7 @@ function proxyMissingFieldsWithJestFn(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['get'], }); diff --git a/addons/yarn.lock b/addons/yarn.lock index dafdda16468d4..797cd4107a2a2 100644 --- a/addons/yarn.lock +++ b/addons/yarn.lock @@ -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"