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-shadow] False positive for enum #2360

Assignees
bradzacher
Labels
bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Milestone
@mshustov

Description

@mshustov

Repro

I created a repo to reproduce the problemhttps://github.com/restrry/typescript-eslint-scope-bug

{"rules": {"@typescript-eslint/no-shadow":"error"  }}
enumDirection{left='left',right='right',}

Expected Result
No errors reported.

Actual Result
1:6 error 'Direction' is already declared in the upper scope @typescript-eslint/no-shadow

Versions

packageversion
@typescript-eslint/eslint-plugin4.0.0-alpha.5
@typescript-eslint/parser4.0.0-alpha.5
TypeScript3.9.5
ESLint6.8.0
node10.21.0
npmN/A
yarn1.21.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp