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 for imported types #1542

Closed
Labels
bugSomething isn't workinghas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginscope analyserIssues that are caused by bugs/incomplete cases in the scope analyser
@StrangeWill

Description

@StrangeWill

Repro

<script lang="ts">// ...import {AxiosError }from"axios";// ...const response=awaitthis.$http.post<JwtToken>("authentication_token",{email:this.username,password:this.password},{headers: {authorization:""}}).catch((error:AxiosError)=> {// <-- this line right hereif (error?.response?.status==401) {throw"Login Failed";}throwerror?.message;});// ...

Expected Result

Should pass es-lint fine

Actual Result

Itsometimes passes es-lint, appears to do it on first pass, but fails on subsequent passes when runningnpm run serve.

Additional Info

Versions

packageversion
@typescript-eslint/eslint-plugin2.18.0
@typescript-eslint/parser2.18.0
TypeScript3.7.5
ESLint6.8.0
node12.14.1
npm6.13.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas prthere is a PR raised to close thispackage: 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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp