10000 `error 'Something' is already declared in the upper scope no-shadow` · Issue #2561 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content

error 'Something' is already declared in the upper scope no-shadow #2561

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

Closed
3 tasks done
garyking opened this issue Sep 14, 2020 · 1 comment
Closed
3 tasks done

error 'Something' is already declared in the upper scope no-shadow #2561

garyking opened this issue Sep 14, 2020 · 1 comment
Labels
fix: user error issue was fixed by correcting the configuration / correcting the code package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@garyking
Copy link
Contributor
garyking commented Sep 14, 2020
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Repro

module.exports = {
  extends: [],
  parser: '@typescript-eslint/parser',
  plugins: ['@typescript-eslint'],
  rules: {}
}
enum Something {
  Abc = 0,
}

Expected Result

No error.

Actual Result

On Something I get the no-shadow error:

error 'Something' is already declared in the upper scope no-shadow

Versions

package version
@typescript-eslint/parser 4.1.1
TypeScript 4.0.2
ESLint 7.9.0
node 14.8.0
@garyking garyking added package: parser Issues related to @typescript-eslint/parser triage Waiting for team members to take a look labels Sep 14, 2020
@bradzacher
Copy link
Member

@bradzacher bradzacher added fix: user error issue was fixed by correcting the configuration / correcting the code package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin and removed package: parser Issues related to @typescript-eslint/parser triage Waiting for team members to take a look labels Sep 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fix: user error issue was fixed by correcting the configuration / correcting the code package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

2 participants
0