mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
chore(deps): bump @typescript-eslint/eslint-plugin from 7.17.0 to 8.0.1 (#8479)
* chore(deps): bump @typescript-eslint/eslint-plugin from 7.17.0 to 8.0.1 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.17.0 to 8.0.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.0.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: lint plugin versions * chore: fix linting --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Beka Westberg <bwestberg@google.com>
This commit is contained in:
@@ -223,7 +223,7 @@ export class Block implements IASTNodeLocation {
|
||||
/**
|
||||
* String for block help, or function that returns a URL. Null for no help.
|
||||
*/
|
||||
helpUrl: string | Function | null = null;
|
||||
helpUrl: string | (() => string) | null = null;
|
||||
|
||||
/** A bound callback function to use when the parent workspace changes. */
|
||||
private onchangeWrapper_: ((p1: Abstract) => void) | null = null;
|
||||
@@ -997,7 +997,7 @@ export class Block implements IASTNodeLocation {
|
||||
* @param url URL string for block help, or function that returns a URL. Null
|
||||
* for no help.
|
||||
*/
|
||||
setHelpUrl(url: string | Function) {
|
||||
setHelpUrl(url: string | (() => string)) {
|
||||
this.helpUrl = url;
|
||||
}
|
||||
|
||||
@@ -1864,7 +1864,7 @@ export class Block implements IASTNodeLocation {
|
||||
const rawValue = json['colour'];
|
||||
try {
|
||||
this.setColour(rawValue);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
console.warn(warningPrefix + 'Illegal colour value: ', rawValue);
|
||||
}
|
||||
}
|
||||
@@ -1881,7 +1881,7 @@ export class Block implements IASTNodeLocation {
|
||||
const blockStyleName = json['style'];
|
||||
try {
|
||||
this.setStyle(blockStyleName);
|
||||
} catch (styleError) {
|
||||
} catch {
|
||||
console.warn(warningPrefix + 'Style does not exist: ', blockStyleName);
|
||||
}
|
||||
}
|
||||
@@ -2461,7 +2461,9 @@ export class Block implements IASTNodeLocation {
|
||||
const event = new (eventUtils.get(eventUtils.BLOCK_MOVE))(
|
||||
this,
|
||||
) as BlockMove;
|
||||
reason && event.setReason(reason);
|
||||
if (reason) {
|
||||
event.setReason(reason);
|
||||
}
|
||||
this.xy_.translate(dx, dy);
|
||||
event.recordNew();
|
||||
eventUtils.fire(event);
|
||||
|
||||
Reference in New Issue
Block a user