Files
blockly/core
Christopher Allen 4c40378b9a Use goog.requireType when importing interfaces (etc.) (#5343)
* Use goog.requireType when importing I* interfaces

Interfaces have no code, so should never be referred to outside of
(JSDoc) comments, and so the modules that define only interfaces never
need to be goog.require'd - goog.requireType is always sufficient.

This commit fixes imports of all modules whose name matches
/(.*\.)?I[A-Z]*/ - i.e., the hungarian-notation named ones in
core/interfaces/.

* Use goog.requireType when only using import for type specifications

Where a module is imported only to used in JSDoc comments it can
(and should) be goog.requireType'd instead of goog.require'd.

* Remove spurious eslint-disable no-unused-vars

There were a few cases where modules were being imported with
goog.require (because they are referred to in code, not just JSDoc
comments) but were prefaced by a spurious eslint suppress.

Remove these, restoring the invariant that an import gets an eslint
if and only if it is a requireType.

* Remove obsolete Closure Compiler error group

stricterMissingRequire has been superceded by missingRequire, and now
causes a Java null pointer exception if supplied.
2021-08-11 18:50:45 +01:00
..
2021-07-21 08:17:13 -07:00
2021-08-05 10:50:44 -07:00
2021-08-04 15:59:41 -07:00
2021-07-30 15:35:31 -07:00
2021-07-29 17:19:57 -07:00
2021-07-21 08:17:13 -07:00
2021-08-10 11:18:38 -07:00
2021-07-30 11:30:34 -07:00
2021-07-23 09:00:09 -07:00
2021-08-03 15:07:14 -07:00
2021-07-22 16:49:01 -07:00
2021-08-03 13:44:22 -07:00
2020-02-11 13:27:20 -08:00
2021-08-05 11:17:37 -07:00
2021-08-05 10:50:44 -07:00
2021-07-30 15:51:45 -07:00
2021-07-26 11:42:17 -07:00
2021-05-27 21:30:26 -07:00
2021-07-27 15:24:26 -07:00