mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
chore: enable linting ts files (#6351)
* chore: initial setup for linting ts * chore: Temporarily disable most of the rules causing problems * chore: fix autofixable problems. * chore: ignore the last few files and rules * chore: fix remaining lint errors * chore: fix more small lint * chore: run original rules on js files, new ts rules on ts files * chore: use jsdoc style return in js files * chore: add lint fix script * chore: fix prefer-spread lint * chore: fix no-invalid-this rule * chore: fix no-unused-vars * chore: fix trashcan lint
This commit is contained in:
committed by
GitHub
parent
9830641cb7
commit
49f87fba79
@@ -20,15 +20,13 @@ import type {BlockSvg} from './block_svg.js';
|
||||
import * as browserEvents from './browser_events.js';
|
||||
import * as clipboard from './clipboard.js';
|
||||
import {config} from './config.js';
|
||||
import type {ContextMenuOption, ContextMenuRegistry, LegacyContextMenuOption} from './contextmenu_registry.js';
|
||||
import * as BlockCreate from './events/events_block_create.js';
|
||||
import type {ContextMenuOption, LegacyContextMenuOption} from './contextmenu_registry.js';
|
||||
import * as eventUtils from './events/utils.js';
|
||||
import {Menu} from './menu.js';
|
||||
import {MenuItem} from './menuitem.js';
|
||||
import {Msg} from './msg.js';
|
||||
import * as aria from './utils/aria.js';
|
||||
import {Coordinate} from './utils/coordinate.js';
|
||||
import * as deprecation from './utils/deprecation.js';
|
||||
import * as dom from './utils/dom.js';
|
||||
import {Rect} from './utils/rect.js';
|
||||
import * as svgMath from './utils/svg_math.js';
|
||||
@@ -44,7 +42,7 @@ import * as Xml from './xml.js';
|
||||
*/
|
||||
let currentBlock: Block|null = null;
|
||||
|
||||
let dummyOwner = {};
|
||||
const dummyOwner = {};
|
||||
|
||||
/**
|
||||
* Gets the block the context menu is currently attached to.
|
||||
|
||||
Reference in New Issue
Block a user