eslint-ts-doc-plugin crashed when trying to lint the code below, because of the ,:
/** @deprecated, hello
This error is returned:
> npm run lint --cache
npm WARN invalid config cache=true
npm WARN invalid config Must be a valid filesystem path
> test@1.0.0 lint /Users/guillaumeclochard/Downloads/a
> eslint src --ext .js,.jsx,.ts,.tsx
TypeError: context.report() called with a messageId of 'tsdoc-characters-after-block-tag' which is not present in the 'messages' config: {
"error-loading-config-file": "Error loading TSDoc config file:\n{{details}}",
"error-applying-config": "Error applying TSDoc configuration: {{details}}",
"tsdoc-at-sign-in-word": "tsdoc-at-sign-in-word: {{unformattedText}}",
...
No crash. Either the correct tsdoc-characters-after-block-tag message is used for this lint error, or something more generic like "TSDoc unknown error message" ?
Bug
eslint-ts-doc-plugin crashed when trying to lint the code below, because of the
,
:This error is returned:
Full error here: https://github.com/guillaumewuip/eslint-tsdoc-error-example/pull/2 Reproduction repo here: https://github.com/guillaumewuip/eslint-tsdoc-error-example
Expected behavior
No crash. Either the correct
tsdoc-characters-after-block-tag
message is used for this lint error, or something more generic like "TSDoc unknown error message" ?