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

feat: inline return statement of arrow function #4

Merged
merged 3 commits into from
May 3, 2024
Merged

feat: inline return statement of arrow function #4

merged 3 commits into from
May 3, 2024

Conversation

sxzz
Copy link
Collaborator

@sxzz sxzz commented May 3, 2024

Description

Add a built-in command inline-arrow

Inline return statement of arrow function.

Triggers:

  • /// inline-arrow
  • /// ia
/// inline-arrow
const foo = async (msg: string): void => {
  return fn(msg)
}

Will be converted to:

const foo = async (msg: string): void => fn(msg)

Linked Issues

Additional context

@antfu antfu merged commit 99b3c5e into antfu:main May 3, 2024
5 checks passed
@sxzz sxzz deleted the feat/inline-arrow branch May 3, 2024 12:57
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 this pull request may close these issues.

2 participants