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

[no-unused-vars] false positive when a type is used in a generic position on a method in a class withemitDecoratorMetadata: true #2972

Closed
Labels
bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@mlc-mlapis

Description

@mlc-mlapis
  • I have tried restarting my IDE, and the issue persists.
  • I have updated to the latest version of the packages.
  • I haveread the FAQ and my problem is not listed.

The problem reported in#2947 has not been solved by#2943. It remains the same as before.

Repro

IfAppState is imported:

import{AppState}from'@m-kbase/shared/general/states';

and later usedonly in a constructor, like:

constructor(private_store:Store<AppState>){}

then the warning appears in many places (in relation to theimport {AppState} from '@m-kbase/shared/general/states'; line):

warning 'AppState' is defined but never used @typescript-eslint/no-unused-vars

Expected Result

The same result as with the previous version 4.13.0 or earlier, with no warnings.

Versions

packageversion
@typescript-eslint/eslint-plugin4.14.1
@typescript-eslint/parser4.14.1
TypeScript4.1.3
ESLint7.18.0
node12.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: 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