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

💅 noUnusedVariables - false-positive for param destructuring if it's used as a default value for another destructured param #1652

Closed
1 task done
ipanasenko opened this issue Jan 23, 2024 · 1 comment · Fixed by #1800

Comments

@ipanasenko
Copy link
Contributor

Environment information

CLI:
  Version:                      1.5.2
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v18.18.2"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/9.8.1"

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

Workspace:
  Open Documents:               0

Rule name

noUnusedVariables

Playground link

https://biomejs.dev/playground/?lintRules=all&code=YwBvAG4AcwB0ACAAYQBGAHUAbgBjAHQAaQBvAG4AIAA9ACAAKAB7AGEALAAgAGIAIAA9ACAAYQB9ACkAIAA9AD4AIAB7AAoAIAAgAGMAbwBuAHMAbwBsAGUALgBpAG4AZgBvACgAYgApADsACgB9AAoAYwBvAG4AcwBvAGwAZQAuAGkAbgBmAG8AKABhAEYAdQBuAGMAdABpAG8AbgApADsA

Expected result

No linting 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
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant