Enable noUncheckedSideEffectImports by default and fix affected tests

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-12 17:15:50 +00:00
parent f8da69bcd6
commit 45860790c5
3 changed files with 5 additions and 1 deletions

View File

@ -1243,7 +1243,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
affectsBuildInfo: true,
category: Diagnostics.Modules,
description: Diagnostics.Check_side_effect_imports,
defaultValueDescription: false,
defaultValueDescription: true,
},
// Source Maps

View File

@ -1,5 +1,7 @@
/// <reference path='fourslash.ts'/>
// @noUncheckedSideEffectImports: false
////import { /*a0*/Bar } from "does-not-exist";
////
////let a: /*a1*/Bar;

View File

@ -1,5 +1,7 @@
/// <reference path='fourslash.ts'/>
// @noUncheckedSideEffectImports: false
////import * as /*a0*/Bar from "does-not-exist";
////
////let a: /*a1*/Bar;