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

chore: enable noUncheckedSideEffectImports TypeScript option #861

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Sep 24, 2024

Depends on #860.

This change should have no user impact.

noUncheckedSideEffectImports checks side-effect imports, such as:

// Not actually importing anything from this module.
import 'example'

This enables that option.

No code changes were required; it may help avoid future mistakes.

This change should have no user impact.

This updates TypeScript to the latest version, 5.6.2. It also updates
`typedoc` dependencies to their latest versions.

I verified that the generated types in `dist/` were not meaningfully
changed. (Some `Iterator` types were slightly adjusted, as expected;
[TypeScript 5.6 made some changes to how `Iterator` types work][0].)

[0]: https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#iterator-helper-methods
This change should have no user impact.

[`noUncheckedSideEffectImports`][0] checks side-effect imports, such as:

```typescript
// Not actually importing anything from this module.
import 'example'
```

This enables that option.

No code changes were required; it may help avoid future mistakes.

[0]: https://www.typescriptlang.org/tsconfig/#noUncheckedSideEffectImports
Copy link
Member

@achou11 achou11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@achou11
Copy link
Member

achou11 commented Sep 24, 2024

Does TypeScript need to be upgraded to 5.6 to make this work?

https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#the---nouncheckedsideeffectimports-option

EDIT: Nevermind, just saw that this depends on the other PR upgrading TypeScript

Base automatically changed from update-typescript to main September 24, 2024 14:33
@EvanHahn EvanHahn merged commit 063b446 into main Sep 24, 2024
6 checks passed
@EvanHahn EvanHahn deleted the noUncheckedSideEffectImports branch September 24, 2024 15:17
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