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

Transform: Prototype transform logic out in JS #93

Closed
wants to merge 3 commits into from

Conversation

NullVoxPopuli
Copy link
Contributor

While working on template-lint's content-tag adoption, I figured it might be nice to standardize an API like this so that:

  • template-lint
  • prettier

This really only works for processors that operate in a "language embedded in another language" style, and won't help eslint or jscodeshift, where they expect to be able to traverse the whole AST at once.

(I mean, maybe jscodeshift's gjs parser (doesnt exist yet) could be made to operate with this transform... maybe I should prototype it out -- if it works, it could also clean up the eslint parser as well)

@NullVoxPopuli
Copy link
Contributor Author

@NullVoxPopuli NullVoxPopuli deleted the transform-but-in-js branch February 1, 2025 13:56
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.

1 participant