-
Notifications
You must be signed in to change notification settings - Fork 141
Invalid position given by 'jsdoc/check-types' #1192
Comments
Ok, I've isolated the problem a little bit... With this block... Lines 277 to 282 in 3630ab6
... Therefore, when line Line 305 in 3630ab6
throwIfInvalidPoint(buffer, msgEndLine, msgEndCol) checks the validity of a -1 indexed end column in a point), and not recognizing such an index, it throws, so we get the reported "Invalid position" error.
Changing line Line 277 in 3630ab6
if (endColumn && typeof endLine !== 'undefined') { ...helps avoid entering the block when I don't know whether |
ESLint returned a point that did not exist in the document being edited.
Rule:
jsdoc/check-types
Requested start point: 10:0 - 10:0
Debug information:
FWIW, the sample I'm experimenting with is:
Should this instead be reported to eslint-plugin-jsdoc?
The text was updated successfully, but these errors were encountered: