You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The list of suggestions. Each suggestion is the pair of a description and an [EditInfo] object to fix code. API users such as editor integrations can choose one of them to fix the problem of this message. This property is undefined if this message doesn't have any suggestions.
436
438
437
439
### ◆ SuppressedLintMessage type
@@ -446,6 +448,8 @@ The `SuppressedLintMessage` value is the information of each suppressed linting
446
448
Same as `fatal` in [LintMessage] type.
447
449
*`message` (`string`)<br>
448
450
Same as `message` in [LintMessage] type.
451
+
*`messageId` (`string | undefined`)<br>
452
+
Same as `messageId` in [LintMessage] type.
449
453
*`line` (`number | undefined`)<br>
450
454
Same as `line` in [LintMessage] type.
451
455
*`column` (`number | undefined`)<br>
@@ -456,7 +460,7 @@ The `SuppressedLintMessage` value is the information of each suppressed linting
The list of suppressions. Each suppression is the pair of a kind and a justification.
@@ -658,6 +662,7 @@ The information available for each linting message is:
658
662
*`fatal` - usually omitted, but will be set to true if there's a parsing error (not related to a rule).
659
663
*`line` - the line on which the error occurred.
660
664
*`message` - the message that should be output.
665
+
*`messageId` - the ID of the message used to generate the message (this property is omitted if the rule does not use message IDs).
661
666
*`nodeType` - (**Deprecated:** This property will be removed in a future version of ESLint.) the node or token type that was reported with the problem.
662
667
*`ruleId` - the ID of the rule that triggered the messages (or null if `fatal` is true).
663
668
*`severity` - either 1 or 2, depending on your configuration.
@@ -837,7 +842,7 @@ In addition to the properties above, invalid test cases can also have the follow
837
842
838
843
*`errors` (number or array, required): Asserts some properties of the errors that the rule is expected to produce when run on this code. If this is a number, asserts the number of errors produced. Otherwise, this should be a list of objects, each containing information about a single reported error. The following properties can be used for an error (all are optional unless otherwise noted):
839
844
*`message` (string/regexp): The message for the error. Must provide this or `messageId`
840
-
*`messageId` (string): The Id for the error. Must provide this or `message`. See [testing errors with messageId](#testing-errors-with-messageid) for details
845
+
*`messageId` (string): The ID for the error. Must provide this or `message`. See [testing errors with messageId](#testing-errors-with-messageid) for details
841
846
*`data` (object): Placeholder data which can be used in combination with `messageId`
842
847
*`type` (string): (**Deprecated:** This property will be removed in a future version of ESLint.) The type of the reported AST node
843
848
*`line` (number): The 1-based line number of the reported location
0 commit comments