Skip to content

Conversation

@matthewbastien
Copy link
Member

Description

Asynchronous import() statements can appear anywhere in a file and make it difficult to see at a glance what dependencies that file has. For example:

const test = await import("./some/file");

Add an ESLint rule that disallows this style of import.

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

@matthewbastien matthewbastien merged commit 2af4f39 into swiftlang:main Dec 20, 2025
26 checks passed
@matthewbastien matthewbastien deleted the disallow-async-import branch December 20, 2025 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants