Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] flags "is already declared in the upper scope" for enum declaration #2

Closed
dayuy opened this issue Jan 3, 2024 · 2 comments
Closed
Assignees

Comments

@dayuy
Copy link

dayuy commented Jan 3, 2024

💻 系统环境 | Operating System

macOS

🐛 问题描述 | Bug Description

Linting a TypeScript file that contains only the following line

export enum PanelFormat {
  short = 'short',
  percent = 'percent',
}

flags the error 'PanelFormat' is already declared in the upper scope.

🚦 期望结果 | Expected Behavior

No error on a unique enum.

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

@Carrotzpc Carrotzpc self-assigned this Jan 3, 2024
@Carrotzpc Carrotzpc reopened this Jan 3, 2024
@yuntijs yuntijs deleted a comment from yunti-bot Jan 3, 2024
@Carrotzpc
Copy link
Member

fixed in cd4a077 , please use v1.5.0

@yunti-bot
Copy link
Collaborator

@dayuy


This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants