Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Add advanced module check #2274

Merged
merged 5 commits into from
Sep 12, 2024
Merged

Conversation

iOvergaard
Copy link
Collaborator

@iOvergaard iOvergaard commented Sep 12, 2024

Description

Based around this comment on X, this adds more advanced module detection so we use import type correctly depending on the settings.

Note: Unfortunately we cannot support "nodenext" for the "module" property, even though it would be better for "tsc" compilation. Our modules do not seem to work with that module and/or module resolution.

Note: The first suggestion with "noUncheckedIndexedAccess" would be very nice to turn on as well, but we simply have too many cases where that falls through to go through all of them. However, if someone wanted to pick that up, we would not say no.

@iOvergaard iOvergaard added the internal Changes that do not affect the runtime files, e.g. changes to the build setup label Sep 12, 2024
Copy link

sonarcloud bot commented Sep 12, 2024

@iOvergaard iOvergaard merged commit 861b761 into main Sep 12, 2024
8 checks passed
@iOvergaard iOvergaard deleted the v14/chore/tsconfig-module-syntax branch September 12, 2024 15:35
@iOvergaard iOvergaard added the ignore-for-release Pull requests that will not be included in the automated release notes. label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release Pull requests that will not be included in the automated release notes. internal Changes that do not affect the runtime files, e.g. changes to the build setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants