Skip to content

Commit 56ceddd

Browse files
authored
Refactor to update internals for TS7
Closes GH-21. Reviewed-by: Remco Haszing <remcohaszing@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 69c314c commit 56ceddd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ export class VFileMessage extends Error {
158158
? options.place.start
159159
: options.place
160160

161-
/* eslint-disable no-unused-expressions */
162161
/**
163162
* Stack of ancestor nodes surrounding the message.
164163
*
@@ -196,7 +195,7 @@ export class VFileMessage extends Error {
196195
*
197196
* @type {string | undefined}
198197
*/
199-
this.file
198+
this.file = ''
200199

201200
// Field from `Error`.
202201
/**
@@ -274,21 +273,21 @@ export class VFileMessage extends Error {
274273
*
275274
* @type {string | undefined}
276275
*/
277-
this.actual
276+
this.actual = undefined
278277

279278
/**
280279
* Suggest acceptable values that can be used instead of `actual`.
281280
*
282281
* @type {Array<string> | undefined}
283282
*/
284-
this.expected
283+
this.expected = undefined
285284

286285
/**
287286
* Long form description of the message (you should use markdown).
288287
*
289288
* @type {string | undefined}
290289
*/
291-
this.note
290+
this.note = undefined
292291

293292
/**
294293
* Link to docs for the message.
@@ -298,8 +297,7 @@ export class VFileMessage extends Error {
298297
*
299298
* @type {string | undefined}
300299
*/
301-
this.url
302-
/* eslint-enable no-unused-expressions */
300+
this.url = undefined
303301
}
304302
}
305303

0 commit comments

Comments
 (0)