mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user