-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
087410d
commit 433b218
Showing
7 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
11 changes: 10 additions & 1 deletion
11
...ges/eslint-plugin/test/__file_snapshots__/types/expect-tsconfigs/expect-dom-tests.ts.lint
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,8 +1,17 @@ | ||
No errors | ||
types/expect-tsconfigs/expect-dom-tests.ts | ||
6:16 error [email protected] compile error: | ||
Cannot find name 'WeakSet'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later @definitelytyped/expect | ||
|
||
✖ 1 problem (1 error, 0 warnings) | ||
|
||
==== types/expect-tsconfigs/expect-dom-tests.ts ==== | ||
|
||
// eslint-disable-next-line @definitelytyped/no-relative-import-in-test | ||
import * as expect from "./"; | ||
|
||
const element: HTMLElement = expect.element; | ||
|
||
const weakSet: WeakSet<{}> = expect.weakSet; | ||
~~~~~~~ | ||
!!! @definitelytyped/expect: [email protected] compile error: | ||
!!! : Cannot find name 'WeakSet'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later. |
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 |
---|---|---|
|
@@ -13,3 +13,5 @@ Cannot find name 'HTMLElement' @definitelytyped/expect | |
~~~~~~~~~~~ | ||
!!! @definitelytyped/expect: [email protected] compile error: | ||
!!! : Cannot find name 'HTMLElement'. | ||
|
||
const weakSet: WeakSet<{}> = expect.weakSet; |
11 changes: 9 additions & 2 deletions
11
packages/eslint-plugin/test/__file_snapshots__/types/expect-tsconfigs/index.d.ts.lint
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,12 +1,19 @@ | ||
types/expect-tsconfigs/index.d.ts | ||
1:23 error [email protected] compile error: | ||
Cannot find name 'HTMLElement' @definitelytyped/expect | ||
Cannot find name 'HTMLElement' @definitelytyped/expect | ||
3:23 error [email protected] compile error: | ||
Cannot find name 'WeakSet'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later @definitelytyped/expect | ||
|
||
✖ 1 problem (1 error, 0 warnings) | ||
✖ 2 problems (2 errors, 0 warnings) | ||
|
||
==== types/expect-tsconfigs/index.d.ts ==== | ||
|
||
export const element: HTMLElement; | ||
~~~~~~~~~~~ | ||
!!! @definitelytyped/expect: [email protected] compile error: | ||
!!! : Cannot find name 'HTMLElement'. | ||
|
||
export const weakSet: WeakSet<{}>; | ||
~~~~~~~ | ||
!!! @definitelytyped/expect: [email protected] compile error: | ||
!!! : Cannot find name 'WeakSet'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later. |
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
2 changes: 2 additions & 0 deletions
2
packages/eslint-plugin/test/fixtures/types/expect-tsconfigs/index.d.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export const element: HTMLElement; | ||
|
||
export const weakSet: WeakSet<{}>; |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"compilerOptions": { | ||
"module": "commonjs", | ||
"lib": [ | ||
"es6", | ||
"es5", | ||
"dom" | ||
], | ||
"noImplicitAny": true, | ||
|