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

💅 noRedeclare | false positive #2372

Closed
1 task done
ahmedrowaihi opened this issue Apr 8, 2024 · 0 comments · Fixed by #2615
Closed
1 task done

💅 noRedeclare | false positive #2372

ahmedrowaihi opened this issue Apr 8, 2024 · 0 comments · Fixed by #2615
Assignees
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@ahmedrowaihi
Copy link

Environment information

CLI:
  Version:                      1.6.1
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "alacritty"
  JS_RUNTIME_VERSION:           "v21.6.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "pnpm/8.15.6"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Linter:
  Recommended:                  true
  All:                          false
  Rules:                        complexity/noForEach = "off"
                                suspicious/noExplicitAny = "off"

Workspace:
  Open Documents:

Rule name

suspicious/noRedeclare

Playground link

https://biomejs.dev/playground/?code=aQBtAHAAbwByAHQAIAB7ACAAYQBsAGwAQQBiAG8AdQB0AHMALAAgAHQAeQBwAGUAIABBAGIAbwB1AHQAIAB9ACAAZgByAG8AbQAgACIAYwBvAG4AdABlAG4AdABsAGEAeQBlAHIALwBnAGUAbgBlAHIAYQB0AGUAZAAiADsACgBpAG0AcABvAHIAdAAgAHQAeQBwAGUAIAB7ACAATQBlAHQAYQBkAGEAdABhACAAfQAgAGYAcgBvAG0AIAAiAG4AZQB4AHQAIgA7AAoACgBmAHUAbgBjAHQAaQBvAG4AIABBAGIAbwB1AHQAQwBhAHIAZAAoAGEAYgBvAHUAdAA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B2ACAAYwBsAGEAcwBzAE4AYQBtAGUAPQAiAHMAcABhAGMAZQAtAHkALQAxADAAIgA%2BAAoACQAJAAkACQB7AGEAbABsAEEAYgBvAHUAdABzAC4AbQBhAHAAKAAoAHAAKQAgAD0APgAgACgACgAJAAkACQAJAAkAPABBAGIAbwB1AHQAQwBhAHIAZAAgAGsAZQB5AD0AewBwAC4AXwBpAGQAfQAgAHsALgAuAC4AcAB9ACAALwA%2BAAoACQAJAAkACQApACkAfQAKAAkACQAJADwALwBkAGkAdgA%2BAAoACQAJADwALwBkAGkAdgA%2BAAoACQApADsACgB9AAoA

Expected result

It should not throw an error

Code of Conduct

  • I agree to follow Biome's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants