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

💅 useArrowFunction invalid code fix when used with bind() #1436

Closed
1 task done
asottile opened this issue Jan 5, 2024 · 0 comments · Fixed by #1457
Closed
1 task done

💅 useArrowFunction invalid code fix when used with bind() #1436

asottile opened this issue Jan 5, 2024 · 0 comments · Fixed by #1457
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

@asottile
Copy link

asottile commented Jan 5, 2024

Environment information

$ biome rage
default/bin/biome rage
CLI:
  Version:                      1.4.1
  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.19.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       unset

Workspace:
  Open Documents:               0

Configuration

n/a

Playground link

https://biomejs.dev/playground/?code=ZgB1AG4AYwB0AGkAbwBuACAAZgAoACkAewB9AAoAbABlAHQAIABhACAAPQAgADEAOwAKAGYAKAAnAHgAJwAsACAAZgB1AG4AYwB0AGkAbwBuACgAYQApACAAewB9AC4AYgBpAG4AZAAoAG4AdQBsAGwALAAgAGEAKQApADsA

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos Conaclos added S-Needs response Status: await response from OP A-Parser Area: parser L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug A-Linter Area: linter and removed S-Needs response Status: await response from OP A-Parser Area: parser labels Jan 5, 2024
@Conaclos Conaclos changed the title conversion to arrow function breaks syntax when immediately .bind(...)ed 💅 useArrowFunction invalid code fix when used with bind() Jan 5, 2024
@Conaclos Conaclos self-assigned this Jan 5, 2024
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.

2 participants