Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: LintMessage.line and column are possibly undefined (#15032)
In `lib/linter/linter.js`, the `parse()` function's exception handler translates the exception's message to a `LintMessage`. It also passes through the exception's `lineNumber` and `column`, but the exception is not guaranteed to have those properties. In that case, `LintMessage.line` and `column` can be `undefined`. In eslint/eslint-plugin-markdown#191, the processor would crash when attempting to map messages without a line. Normally widening a type like this would be a breaking change, but since this is only updating the docs to reflect reality, I think this can be a semver-patch change.
- Loading branch information