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] (v4-alpha.9) Incorrect warning about unused type with abstract field #2417

Assignees
bradzacher
Labels
bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginscope analyserIssues that are caused by bugs/incomplete cases in the scope analyser
@eamodio

Description

@eamodio
  • 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.

Repro

{"rules": {"@typescript-eslint/no-unused-vars": ["warn",{"args":"after-used","argsIgnorePattern":"^_","ignoreRestSiblings":true,"varsIgnorePattern":"^_$"}]  }}

fileA

exporttypeFooType='foo'|'bar';

fileB

import{FooType}from'./fileA';abstractclassFoo{protectedabstractreadonlytype:FooType;}

Expected Result

No errors/warnings

Actual Result

WARNING in fileB.ts:1:8    @typescript-eslint/no-unused-vars: 'FooType' is defined but never used. Allowed unused vars must match /^_$/u.

Additional Info

Versions

packageversion
@typescript-eslint/eslint-plugin4.0.0-alpha.9
@typescript-eslint/parser4.0.0-alpha.9
TypeScript4.0.2
ESLint7.7.0
node12.16.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginscope analyserIssues that are caused by bugs/incomplete cases in the scope analyser

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