Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/lints): Ignore ambient context binding (#8368)
**Related issue:** - Closes #8367
- Loading branch information
1 parent
7c666ca
commit 83c8fe5
Showing
7 changed files
with
23 additions
and
135 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare class Foo { } | ||
|
||
function Foo() { } |
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 @@ | ||
function Foo() {} |
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
31 changes: 0 additions & 31 deletions
31
crates/swc/tests/tsc-references/declaredClassMergedwithSelf.1.normal.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 |
---|---|---|
@@ -1,35 +1,4 @@ | ||
//// [declaredClassMergedwithSelf.ts] | ||
//// [file1.ts] | ||
//! | ||
//! x the name `C1` is defined multiple times | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | declare class C1 {} | ||
//! : ^| | ||
//! : `-- previous definition of `C1` here | ||
//! 3 | | ||
//! 4 | declare class C1 {} | ||
//! : ^| | ||
//! : `-- `C1` redefined here | ||
//! 5 | | ||
//! 6 | declare class C2 {} | ||
//! `---- | ||
//! | ||
//! x the name `C2` is defined multiple times | ||
//! ,-[3:1] | ||
//! 3 | | ||
//! 4 | declare class C1 {} | ||
//! 5 | | ||
//! 6 | declare class C2 {} | ||
//! : ^| | ||
//! : `-- previous definition of `C2` here | ||
//! 7 | | ||
//! 8 | interface C2 {} | ||
//! 9 | | ||
//! 10 | declare class C2 {} | ||
//! : ^| | ||
//! : `-- `C2` redefined here | ||
//! 11 | | ||
//! `---- | ||
//// [file2.ts] | ||
//// [file3.ts] |
31 changes: 0 additions & 31 deletions
31
crates/swc/tests/tsc-references/declaredClassMergedwithSelf.2.minified.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 |
---|---|---|
@@ -1,35 +1,4 @@ | ||
//// [declaredClassMergedwithSelf.ts] | ||
//// [file1.ts] | ||
//! | ||
//! x the name `C1` is defined multiple times | ||
//! ,-[1:1] | ||
//! 1 | | ||
//! 2 | declare class C1 {} | ||
//! : ^| | ||
//! : `-- previous definition of `C1` here | ||
//! 3 | | ||
//! 4 | declare class C1 {} | ||
//! : ^| | ||
//! : `-- `C1` redefined here | ||
//! 5 | | ||
//! 6 | declare class C2 {} | ||
//! `---- | ||
//! | ||
//! x the name `C2` is defined multiple times | ||
//! ,-[3:1] | ||
//! 3 | | ||
//! 4 | declare class C1 {} | ||
//! 5 | | ||
//! 6 | declare class C2 {} | ||
//! : ^| | ||
//! : `-- previous definition of `C2` here | ||
//! 7 | | ||
//! 8 | interface C2 {} | ||
//! 9 | | ||
//! 10 | declare class C2 {} | ||
//! : ^| | ||
//! : `-- `C2` redefined here | ||
//! 11 | | ||
//! `---- | ||
//// [file2.ts] | ||
//// [file3.ts] |
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