Skip to content

Hoist-regex #16

@antfu

Description

@antfu

Clear and concise description of the problem

function foo(file) {
  /// hoist-regex customName
  return file.test(/some-regex/)
}

to

const customName = /some-regex/
function foo(file) {
  return file.test(customName)
}

Suggested solution

Alternative

Later we could support a bunch of other hoist-x commands

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions