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-undef] False positive for Interfaces #342

Closed
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
@dawsonc623

Description

@dawsonc623

Repro

Paste the below code into a file and lint it.

interfaceStringCollection{get(index :number) :string;}exportdefaultStringCollection;

Expected Result

ESLint should not produce any errors

Actual Result

ESLint produces ano-undef error.

Additional Info

Oddly, it also complains about me usingnew Map<T, U>() with the same rule. I am not sure if it is the same root cause, but I figured it was worth noting.

Versions

packageversion
@typescript-eslint/eslint-plugin1.4.2
@typescript-eslint/parser1.4.2
TypeScript3.3.3333
ESLint5.15.1
node8.15.0
npm*6.4.1
yarn*1.12.3

* I use Yarn instead of NPM

Metadata

Metadata

Assignees

No one assigned

    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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp