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 for overloaded functions in an interface #1932

Closed
1 task done
jschaf opened this issue Feb 28, 2024 · 2 comments · Fixed by #1937
Closed
1 task done

💅 noRedeclare false positive for overloaded functions in an interface #1932

jschaf opened this issue Feb 28, 2024 · 2 comments · Fixed by #1937
Assignees
Labels
A-Analyzer Area: analyzer A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@jschaf
Copy link

jschaf commented Feb 28, 2024

Environment information

CLI:
  Version:                      1.5.3
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v21.5.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.2.4"

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

Workspace:
  Open Documents:               0

Rule name

lint/suspicious/noRedeclare

Playground link

Playground

Expected result

Biome should not warn that type parameter K is reused because it's part of a different declaration.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@ematipico ematipico added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug A-Analyzer Area: analyzer labels Feb 28, 2024
@keita-hino
Copy link
Contributor

I would like to do this, may I?

@jschaf
Copy link
Author

jschaf commented Feb 28, 2024

Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Analyzer Area: analyzer 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
3 participants