Skip to content

Commit

Permalink
Docs: Add fatal to Node.js API LintMessage type (#14251)
Browse files Browse the repository at this point in the history
* Docs: Add fatal to Node.js API LintMessage type

* Docs: LintMessage.fatal is an optional property

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>

Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
  • Loading branch information
btmills and mdjermanovic committed Apr 1, 2021
1 parent cd2e584 commit c85c2f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/developer-guide/nodejs-api.md
Expand Up @@ -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`)<br>
The severity of this message. `1` means warning and `2` means error.
* `fatal` (`boolean | undefined`)<br>
`true` if this is a fatal error unrelated to a rule, like a parsing error.
* `message` (`string`)<br>
The error message.
* `line` (`number`)<br>
Expand Down

0 comments on commit c85c2f1

Please sign in to comment.