Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bug: [no-unused-vars] False negative when var is referenced from TSDoc{@link ...} / tsdoc support #6967

Closed
Labels
duplicateThis issue or pull request already existspackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@kraenhansen

Description

@kraenhansen

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 havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Playground Link

https://typescript-eslint.io/play/#ts=5.0.4&sourceType=module&code=JYWwDg9gTgLgBAbzgZQiApjAFsAdgczgF84AzKNOAcgGc10B3LdKdKgbgCgB6AKl85xecAKo10NONnSIAAgBs8AaxT1sefEUG9undAA9IsOAGN5AQxqSAwhFw0ArhiiJinIA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1tidmUQAmtAG4BDaKgyRE0aB2iRwYAL4hlQA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA

Repro Code

import{Something}from'somewhere';/** * Uses the {@link Something} */exportclassConsumer{}

ESLint Config

module.exports={parser:"@typescript-eslint/parser",rules:{"@typescript-eslint/no-unused-vars":"error"}};

tsconfig

No response

Expected Result

I expected the{@link Something} to markSomething as used and therefore not fail on line 1

Actual Result

An error on line 1:

'Something' is defined but never used. 1:10 - 1:19

Additional Info

When ICtrl + click in VSCode my editor jumps to the class definition as expected andTypeDoc will generate links when mentioning a class like this, but it must be imported.

This is a link for the{@link} inline tag:https://tsdoc.org/pages/tags/link/

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existspackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp