Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export class VFileMessage extends Error {
? options.place.start
: options.place

/* eslint-disable no-unused-expressions */
/**
* Stack of ancestor nodes surrounding the message.
*
Expand Down Expand Up @@ -196,7 +195,7 @@ export class VFileMessage extends Error {
*
* @type {string | undefined}
*/
this.file
this.file = ''

// Field from `Error`.
/**
Expand Down Expand Up @@ -274,21 +273,21 @@ export class VFileMessage extends Error {
*
* @type {string | undefined}
*/
this.actual
this.actual = undefined

/**
* Suggest acceptable values that can be used instead of `actual`.
*
* @type {Array<string> | undefined}
*/
this.expected
this.expected = undefined

/**
* Long form description of the message (you should use markdown).
*
* @type {string | undefined}
*/
this.note
this.note = undefined

/**
* Link to docs for the message.
Expand All @@ -298,8 +297,7 @@ export class VFileMessage extends Error {
*
* @type {string | undefined}
*/
this.url
/* eslint-enable no-unused-expressions */
this.url = undefined
}
}

Expand Down