You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need either parser: '@typescript-eslint/parser' or settings: {jsdoc: {mode: 'typescript'}} in your ESLint config since plain jsdoc does not support that import syntax; see, e.g., jsdoc/jsdoc#1632 and jsdoc/jsdoc#1645 . The reason the README accepts that without settings is because for the check-types rule, it is only checking for things like the casing of "Object".
Or as the docs for check-types put it:
Note that if there is an error parsing
types for a tag, the function will silently ignore that tag, leaving it to
the valid-types rule to report parsing errors.
For valid-types, you need proper parsing suitable for the mode (which defaults to "jsdoc" which supports module: syntax instead).
Hi, i have two files with code:
and config like:
in terminal i have error:
there is repo with clean example of code:
https://github.com/krutoo/eslint-plugin-jsdoc-tests
Why this code is marked as with syntax error?
(this worked differently in previous plugin versions)
readme.md
tells that is valid type syntax:https://github.com/gajus/eslint-plugin-jsdoc#why-not-capital-case-everything
with this code example:
The text was updated successfully, but these errors were encountered: