-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new option "noUncheckedSideEffectImports" (#58941)
- Loading branch information
1 parent
79bd844
commit 85d6bb6
Showing
78 changed files
with
985 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...ig/showConfig/Shows tsconfig for single option/noUncheckedSideEffectImports/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"noUncheckedSideEffectImports": true | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...lines/reference/sideEffectImports1(module=commonjs,nouncheckedsideeffectimports=false).js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
//// [sideEffectImports1.ts] | ||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
||
|
||
//// [sideEffectImports1.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("does-not-exist"); | ||
require("./does-not-exist-either"); | ||
require("./does-not-exist-either.js"); |
8 changes: 8 additions & 0 deletions
8
.../reference/sideEffectImports1(module=commonjs,nouncheckedsideeffectimports=false).symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
=== sideEffectImports1.ts === | ||
|
||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
8 changes: 8 additions & 0 deletions
8
...es/reference/sideEffectImports1(module=commonjs,nouncheckedsideeffectimports=false).types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
=== sideEffectImports1.ts === | ||
|
||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
16 changes: 16 additions & 0 deletions
16
...eference/sideEffectImports1(module=commonjs,nouncheckedsideeffectimports=true).errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
sideEffectImports1.ts(1,8): error TS2307: Cannot find module 'does-not-exist' or its corresponding type declarations. | ||
sideEffectImports1.ts(2,8): error TS2307: Cannot find module './does-not-exist-either' or its corresponding type declarations. | ||
sideEffectImports1.ts(3,8): error TS2307: Cannot find module './does-not-exist-either.js' or its corresponding type declarations. | ||
|
||
|
||
==== sideEffectImports1.ts (3 errors) ==== | ||
import "does-not-exist"; | ||
~~~~~~~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module 'does-not-exist' or its corresponding type declarations. | ||
import "./does-not-exist-either"; | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './does-not-exist-either' or its corresponding type declarations. | ||
import "./does-not-exist-either.js"; | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './does-not-exist-either.js' or its corresponding type declarations. | ||
|
14 changes: 14 additions & 0 deletions
14
...elines/reference/sideEffectImports1(module=commonjs,nouncheckedsideeffectimports=true).js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
//// [sideEffectImports1.ts] | ||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
||
|
||
//// [sideEffectImports1.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("does-not-exist"); | ||
require("./does-not-exist-either"); | ||
require("./does-not-exist-either.js"); |
8 changes: 8 additions & 0 deletions
8
...s/reference/sideEffectImports1(module=commonjs,nouncheckedsideeffectimports=true).symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
=== sideEffectImports1.ts === | ||
|
||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
8 changes: 8 additions & 0 deletions
8
...nes/reference/sideEffectImports1(module=commonjs,nouncheckedsideeffectimports=true).types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
=== sideEffectImports1.ts === | ||
|
||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
14 changes: 14 additions & 0 deletions
14
...lines/reference/sideEffectImports1(module=nodenext,nouncheckedsideeffectimports=false).js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
//// [sideEffectImports1.ts] | ||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
||
|
||
//// [sideEffectImports1.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("does-not-exist"); | ||
require("./does-not-exist-either"); | ||
require("./does-not-exist-either.js"); |
8 changes: 8 additions & 0 deletions
8
.../reference/sideEffectImports1(module=nodenext,nouncheckedsideeffectimports=false).symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
=== sideEffectImports1.ts === | ||
|
||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
8 changes: 8 additions & 0 deletions
8
...es/reference/sideEffectImports1(module=nodenext,nouncheckedsideeffectimports=false).types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//// [tests/cases/compiler/sideEffectImports1.ts] //// | ||
|
||
=== sideEffectImports1.ts === | ||
|
||
import "does-not-exist"; | ||
import "./does-not-exist-either"; | ||
import "./does-not-exist-either.js"; | ||
|
Oops, something went wrong.