Skip to content

Bug: [no-unused-vars] <should consider use in JSDoc> #8258

Closed as not planned
Closed as not planned
@parloti

Description

@parloti

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.

Playground Link

https://typescript-eslint.io/play/#ts=5.3.3&fileType=.ts&code=JYWwDg9gTgLgBAbzgeQHYBECmBnGUICecAvnAGb4hwDkAAgIaoDmArgDb1QD0AxtJtQDcAWABQY4KhiYoZej0xwAkkqkzEYscU2iuAKj1i4exLTaSA1igw48hEqfOorKtVG2jjXMZgAekWHIWVB4YYAhUOAAxYIAKAEoNTzgoTBgWKEiABhFRDyA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQHYHsBaWXWZRAE0IDcBDaVDSfAMxcgBpxtIABAFwCeABxQBjaAEth-QiniTc-APQFipclToN0URNGj5okbgF8QpoA&tsconfig=&tokens=false

Repro Code

import { OnDestroy } from '@angular/core';

interface IInter {

}

/**
 * {@link OnDestroy } {@link IInter}
 */
export function Fun() {
  return 0;
}

ESLint Config

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

tsconfig

{
  "compilerOptions": {
    // ...
  }
}

Expected Result

I expected none of these errors to occur:

'OnDestroy' is defined but never used. 1:10 - 1:19
'IInter' is defined but never used. 3:11 - 3:17

Actual Result

The linter throws the following errors:

'OnDestroy' is defined but never used. 1:10 - 1:19
'IInter' is defined but never used. 3:11 - 3:17

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy