-
Notifications
You must be signed in to change notification settings - Fork 11
fix: support more typescript nodes #70
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: bc27fb4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
|
Relates: oxc-project/oxc#11495
This aims at supporting more general ast, that can be parsed by
oxc-parser
and then printed by us. Our current testing setup uses acorn, which has some key differences to@typescript-eslint/types
outlined in the past.I have currently modified the testing setup to use acorn by default. Changing one boolean in the testing setup will also test everything against
oxc-parser
. There is probably a nicer way to do this in the future, but it should work out for now.Todo:
wth, is going on withCurrently, we cannot work withoxc-parser
's comments? They don't even have a line number or anything, just start and end, but you don't have a clue where those comments should gooxc-parsers
comments as they are missing theloc
property, see estree codegen oxc-project/oxc#11495 (comment), let's handle that at a later pointFix testing setup to use both parsers. What would be the best way to do this? With a command line flag? Or just run both inside the test?For now, both parser run in the same test and execute against the same snapshot. Maps are not compared, as they have noticeable differences. We could either create another .map file for oxc or leave it as is.