From c85c2f1138a9e952655f19ee780ab0c8e35431a8 Mon Sep 17 00:00:00 2001 From: Brandon Mills Date: Thu, 1 Apr 2021 12:03:50 -0400 Subject: [PATCH] Docs: Add fatal to Node.js API LintMessage type (#14251) * Docs: Add fatal to Node.js API LintMessage type * Docs: LintMessage.fatal is an optional property Co-authored-by: Milos Djermanovic Co-authored-by: Milos Djermanovic --- docs/developer-guide/nodejs-api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/developer-guide/nodejs-api.md b/docs/developer-guide/nodejs-api.md index 708d1fa82f8..ce727135784 100644 --- a/docs/developer-guide/nodejs-api.md +++ b/docs/developer-guide/nodejs-api.md @@ -353,6 +353,8 @@ The `LintMessage` value is the information of each linting error. The `messages` The rule name that generates this lint message. If this message is generated by the ESLint core rather than rules, this is `null`. * `severity` (`1 | 2`)
The severity of this message. `1` means warning and `2` means error. +* `fatal` (`boolean | undefined`)
+ `true` if this is a fatal error unrelated to a rule, like a parsing error. * `message` (`string`)
The error message. * `line` (`number`)