chore(deps): Bump prettier from 2.8.8 to 3.0.0 (#7322)

* chore(deps): Bump prettier from 2.8.8 to 3.0.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: Reformat using Prettier v3.0 defaults

The main change is to add trailing commas to the last line of
block-formatted function calls.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christopher Allen <cpcallen+git@google.com>
This commit is contained in:
dependabot[bot]
2023-07-25 14:56:10 +00:00
committed by GitHub
parent 9fc57a3bfa
commit 2546b01d70
297 changed files with 3247 additions and 3181 deletions

View File

@@ -23,7 +23,7 @@ export function startsWith(str: string, prefix: string): boolean {
'Blockly.utils.string.startsWith()',
'April 2022',
'April 2023',
'Use built-in string.startsWith'
'Use built-in string.startsWith',
);
return str.startsWith(prefix);
}
@@ -53,7 +53,7 @@ export function shortestStringLength(array: string[]): number {
*/
export function commonWordPrefix(
array: string[],
opt_shortest?: number
opt_shortest?: number,
): number {
if (!array.length) {
return 0;
@@ -93,7 +93,7 @@ export function commonWordPrefix(
*/
export function commonWordSuffix(
array: string[],
opt_shortest?: number
opt_shortest?: number,
): number {
if (!array.length) {
return 0;
@@ -199,7 +199,7 @@ function wrapLine(text: string, limit: number): string {
function wrapScore(
words: string[],
wordBreaks: boolean[],
limit: number
limit: number,
): number {
// If this function becomes a performance liability, add caching.
// Compute the length of each line.
@@ -256,7 +256,7 @@ function wrapScore(
function wrapMutate(
words: string[],
wordBreaks: boolean[],
limit: number
limit: number,
): boolean[] {
let bestScore = wrapScore(words, wordBreaks, limit);
let bestBreaks;