Internal consistent-docs-url rule crashes if meta.docs isn't present #10722
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
good first issue
Good for people who haven't worked on ESLint before
infrastructure
Relates to the tools used in the ESLint development process
rule
Relates to ESLint's core rules
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Default
Please show your full configuration:
According to the internal ESLint config around rules:
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
Either a lint error about the lack of
meta.docs
(ormeta.docs.url
), or nothing if that is covered by another rule.What actually happened? Please include the actual, raw output from ESLint.
ESLint crashes, with an error message from
context.report
that the node location must be passed if the node is not passed.I believe the problem is in this area, where we check for the absence of
metaDocsUrl
but don't check thatmetaDocs
is non-null before sending it tocontext.report
.The text was updated successfully, but these errors were encountered: