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

tsconfig: enable noUncheckedSideEffectImports #7464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Feb 13, 2025

What this PR does

This makes tsc error when doing a side effect
import of a module that does not exist.

Test me

Change import "inobounce"; in StandardUserInterface.tsx to import "missing-inobounce";, then run yarn run tsc -b and see that there is an error reported.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

@pjonsson pjonsson mentioned this pull request Feb 13, 2025
4 tasks
This makes tsc error when doing a side effect
import of a module that does not exist.
@pjonsson pjonsson force-pushed the tsconfig-nouncheckedsideeffectimports branch from 81bd1a9 to 3bab44d Compare February 18, 2025 12:22
@pjonsson
Copy link
Contributor Author

I had misunderstood how style-loader is invoked, so updated this PR to just enable the check in tsc and let #7471 handle the style-loader stuff.

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.

1 participant