Skip to content

Commit

Permalink
chore: enable noUncheckedSideEffectImports TypeScript option (#861)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
EvanHahn authored Sep 24, 2024
1 parent 3e27568 commit 063b446
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"lib": ["es2022"],
"noImplicitAny": true,
"noImplicitThis": true,
"noUncheckedSideEffectImports": true,
"strictNullChecks": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
Expand Down

0 comments on commit 063b446

Please sign in to comment.