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

💅 False positive lint/correctness/noUnusedVariables on bracketless arrow functions #861

Closed
1 task done
jtannas opened this issue Nov 23, 2023 · 0 comments · Fixed by #867
Closed
1 task done
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

@jtannas
Copy link

jtannas commented Nov 23, 2023

Environment information

$ bun biome rage
CLI:
  Version:                      1.3.3-nightly.38797b7
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v18.14.1"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "bun/1.0.13"

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

Workspace:
  Open Documents:

Rule name

lint/correctness/noUnusedVariables

Playground link

https://biomejs.dev/playground/?lintRules=all&code=PAA%2BAAoAIAAgADwAdQBsAD4ACgAgACAAIAAgAHsAWwAxACwAMgAsADMAXQAuAG0AYQBwACgAZQAgAD0APgAgACgACgAgACAAIAAgACAAIAA8AGwAaQAgAGsAZQB5AD0AewBlAH0APgB7AGUAfQA8AC8AbABpAD4ACgAgACAAIAAgACkAKQB9AAoAIAAgADwALwB1AGwAPgAKACAAIAAgACAACgAgACAAPAB1AGwAPgAKACAAIAAgACAAewBbADEALAAyACwAMwBdAC4AbQBhAHAAKAAoAGUAKQAgAD0APgAgACgACgAgACAAIAAgACAAIAA8AGwAaQAgAGsAZQB5AD0AewBlAH0APgB7AGUAfQA8AC8AbABpAD4ACgAgACAAIAAgACkAKQB9AAoAIAAgADwALwB1AGwAPgAKADwALwA%2BAA%3D%3D

Expected result

It should not throw an error in the case shown in the playground.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@TaKO8Ki TaKO8Ki 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 Nov 24, 2023
@Conaclos Conaclos self-assigned this Nov 24, 2023
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