mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The TSLint rule for ESM/CJS interop was apparently not working for a short period of time due to diverging TypeScript versions. This commit fixes the lint warning to replace the type-only import with a default import. Even thoughn not striclty needed for types- the rule enforces a default import as that is the safer approach for runtime imported symbols. Also the rule is updated to not disallow `cluster` anymore. The types for cluster do no allow for e.g. `cluster.Worker` if cluster refers to the default import. The whole lint rule is not strictly needed anymore since we build & test with ESM in this repo now! PR Close #48731 |
||
|---|---|---|
| .. | ||
| legacy | ||
| adapters_spec.ts | ||
| BUILD.bazel | ||
| code_fixes_spec.ts | ||
| compiler_spec.ts | ||
| completions_spec.ts | ||
| definitions_spec.ts | ||
| diagnostic_spec.ts | ||
| get_template_location_for_component_spec.ts | ||
| gettcb_spec.ts | ||
| quick_info_spec.ts | ||
| references_and_rename_spec.ts | ||
| signature_help_spec.ts | ||
| ts_utils_spec.ts | ||
| type_definitions_spec.ts | ||