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

💅 noInvalidUseBeforeDeclaration - false-positive for param destructuring with default values #1648

Closed
1 task done
ipanasenko opened this issue Jan 23, 2024 · 1 comment · Fixed by #1800
Closed
1 task done
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

@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

noInvalidUseBeforeDeclaration

Playground link

https://biomejs.dev/playground/?lintRules=all&code=YwBvAG4AcwB0ACAAYQBGAHUAbgBjAHQAaQBvAG4AIAA9ACAAKAB7AGEAIAA9ACAAJwAxADEAMQAnACwAIABiACAAPQAgAGEAfQApACAAPQA%2BACAAewAKACAAIABjAG8AbgBzAG8AbABlAC4AaQBuAGYAbwAoAGEALABiACkAOwAKAH0ACgBjAG8AbgBzAG8AbABlAC4AaQBuAGYAbwAoAGEARgB1AG4AYwB0AGkAbwBuACkAOwA%3D

Expected result

No linting error

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos Conaclos added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Jan 23, 2024
@ipanasenko
Copy link
Contributor Author

Related to #1652

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
2 participants