mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +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:
@@ -70,7 +70,7 @@ export class ComponentManager {
|
||||
id +
|
||||
'" with capabilities "' +
|
||||
this.componentData.get(id)?.capabilities +
|
||||
'" already added.'
|
||||
'" already added.',
|
||||
);
|
||||
}
|
||||
this.componentData.set(id, componentInfo);
|
||||
@@ -117,12 +117,12 @@ export class ComponentManager {
|
||||
capability +
|
||||
'". Plugin "' +
|
||||
id +
|
||||
'" has not been added to the ComponentManager'
|
||||
'" has not been added to the ComponentManager',
|
||||
);
|
||||
}
|
||||
if (this.hasCapability(id, capability)) {
|
||||
console.warn(
|
||||
'Plugin "' + id + 'already has capability "' + capability + '"'
|
||||
'Plugin "' + id + 'already has capability "' + capability + '"',
|
||||
);
|
||||
return;
|
||||
}
|
||||
@@ -144,7 +144,7 @@ export class ComponentManager {
|
||||
capability +
|
||||
'". Plugin "' +
|
||||
id +
|
||||
'" has not been added to the ComponentManager'
|
||||
'" has not been added to the ComponentManager',
|
||||
);
|
||||
}
|
||||
if (!this.hasCapability(id, capability)) {
|
||||
@@ -153,7 +153,7 @@ export class ComponentManager {
|
||||
id +
|
||||
'doesn\'t have capability "' +
|
||||
capability +
|
||||
'" to remove'
|
||||
'" to remove',
|
||||
);
|
||||
return;
|
||||
}
|
||||
@@ -196,7 +196,7 @@ export class ComponentManager {
|
||||
*/
|
||||
getComponents<T extends IComponent>(
|
||||
capability: string | Capability<T>,
|
||||
sorted: boolean
|
||||
sorted: boolean,
|
||||
): T[] {
|
||||
capability = `${capability}`.toLowerCase();
|
||||
const componentIds = this.capabilityToComponentIds.get(capability);
|
||||
|
||||
Reference in New Issue
Block a user