8000 Bug: [no-unused-vars] Does not recognize `@link` JSDoc usage. · Issue #7944 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content

Bug: [no-unused-vars] Does not recognize @link JSDoc usage. #7944

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

Closed
4 tasks done
brunnerh opened this issue Nov 17, 2023 · 6 comments
Closed
4 tasks done

Bug: [no-unused-vars] Does not recognize @link JSDoc usage. #7944

brunnerh opened this issue Nov 17, 2023 · 6 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@brunnerh
Copy link
brunnerh commented Nov 17, 2023

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

The TS language server recognizes and processes references in @link.
The plugin still complains about the variable not being used.

Reproduction Repository Link

https://github.com/brunnerh/ts-eslint-link-issue

Edit: Playground

Repro Steps

  1. clone the repo
  2. npm install
  3. npm run lint

Versions

package version
@typescript-eslint/eslint-plugin 6.11.0
@typescript-eslint/parser 6.11.0
ESLint 8.53.0
node 18.13.0
@brunnerh brunnerh added bug Something isn't working triage Waiting for team members to take a look labels Nov 17, 2023
@brunnerh
Copy link
Author
brunnerh commented Nov 17, 2023

Just realized I could have reproduced with a module-local function e.g.:
Playground

(Of course that sort of usage does not make sense, cross-file references as in the reproduction repository do, though.)

@bradzacher
Copy link
Member

Duplicate of #6967 #5017

Please use the search.

@bradzacher bradzacher closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2023
@bradzacher bradzacher added duplicate This issue or pull request already exists package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin and removed triage Waiting for team members to take a look labels Nov 17, 2023
@brunnerh
Copy link
Author
brunnerh commented Nov 17, 2023

I did search, unfortunately the search is completely useless:
screenshot of search finding a thousands of issues for @link

Copy link

Uh oh! @brunnerh, the image you shared is missing helpful alt text. Check #7944 (comment).

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

1 similar comment
Copy link

Uh oh! @brunnerh, the image you shared is missing helpful alt text. Check #7944 (comment).

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

@bradzacher
Copy link
Member

Drop the @ and add another keyword (jsdoc) and you'll find more relevant results.

https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+link+jsdoc

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working duplicate This issue or pull request already exists package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

2 participants
0