Skip to content

feat(no-undefined-types): checking inline tags #1062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 10, 2023

Conversation

kraenhansen
Copy link
Contributor

While it doesn't add a new / separate rule like #1058 aims to, this does solve the underlying need communicated in #858 by updating the no-undefined-types rule to incorporate the recently added feature from jsdoccomment of parsing inline tags. Since it already marks types from other tags as used, this seem like a valuable addition until this is refactored into a separate rule or setting on no-undefined-types.

@brettz9
Copy link
Collaborator

brettz9 commented May 7, 2023

FWIW, @kraenhansen , I've submitted #1065 to allow disabling reporting (so as to just use the marking of unused variables) as well as to disable marking of variables used (so as to just get reporting of undefined types).

@kraenhansen kraenhansen requested a review from brettz9 May 8, 2023 09:49
@kraenhansen kraenhansen force-pushed the no-undefined-types-in-inline-links branch from ac9589c to 61a1049 Compare May 10, 2023 10:07
@kraenhansen
Copy link
Contributor Author

@brettz9 I've rebased on the latest main.

@brettz9 brettz9 merged commit c1781d2 into gajus:main May 10, 2023
@github-actions
Copy link

🎉 This PR is included in version 44.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kraenhansen kraenhansen deleted the no-undefined-types-in-inline-links branch May 10, 2023 13:16
@kraenhansen
Copy link
Contributor Author

Reading the docs, I realise that the "namepath-or-url-referencing" value is now missing from: https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/settings.md#structuredtags

@brettz9
Copy link
Collaborator

brettz9 commented May 15, 2023

Ok, thanks, I have a PR to come shortly.

@brettz9
Copy link
Collaborator

brettz9 commented May 15, 2023

Merged now as part of misc. items in #1087

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants