2017-12-07 21:14:18 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @allowjs: true
|
|
|
|
// @checkJs: true
|
|
|
|
// @noEmit: true
|
|
|
|
|
|
|
|
// @Filename: a.js
|
|
|
|
////let x = "";
|
2018-01-25 22:53:08 +01:00
|
|
|
////x = 1; x = true;
|
|
|
|
////x = [];
|
2017-12-07 21:14:18 +01:00
|
|
|
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "disableJsDiagnostics",
|
2018-03-28 03:21:21 +02:00
|
|
|
fixAllDescription: "Add '@ts-ignore' to all error messages",
|
2017-12-07 21:14:18 +01:00
|
|
|
newFileContent:
|
|
|
|
`let x = "";
|
2018-01-12 02:43:27 +01:00
|
|
|
// @ts-ignore
|
2018-01-25 22:53:08 +01:00
|
|
|
x = 1; x = true;
|
2018-01-12 02:43:27 +01:00
|
|
|
// @ts-ignore
|
2018-01-25 22:53:08 +01:00
|
|
|
x = [];`,
|
2017-12-07 21:14:18 +01:00
|
|
|
});
|