Skip to content

perf(linter/plugins): use Oxc tokens in plugins#19498

Merged
graphite-app[bot] merged 1 commit intomainfrom
c/02-17-feat_oxlint_integrate_shared_estree_tokens_and_remove_ts_fallback
Feb 24, 2026
Merged

perf(linter/plugins): use Oxc tokens in plugins#19498
graphite-app[bot] merged 1 commit intomainfrom
c/02-17-feat_oxlint_integrate_shared_estree_tokens_and_remove_ts_fallback

Conversation

@camc314
Copy link
Contributor

@camc314 camc314 commented Feb 17, 2026

Builds on #19497. Use the tokens generated by Oxc's parser in linter plugins, instead of running TS parser to tokenize source.

This is a sizeable perf gain, and also allows us to remove TS parser from oxlint's bundle (#19531).

Additionally, our parser is more accurate than TypeScript - we handle HTML comments and space before slash in closing JSX elements (< /div>) - so this fixes a few conformance tests.

Copy link
Contributor Author

camc314 commented Feb 17, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added A-linter Area - Linter A-parser Area - Parser A-cli Area - CLI A-ast-tools Area - AST tools A-linter-plugins Area - Linter JS plugins C-enhancement Category - New feature or request labels Feb 17, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 17, 2026

Merging this PR will not alter performance

✅ 47 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing c/02-17-feat_oxlint_integrate_shared_estree_tokens_and_remove_ts_fallback (501772e) with main (035933c)2

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (4ce37b0) during the generation of this report, so 035933c was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@camc314 camc314 force-pushed the c/02-17-feat_parser_estree_coverage_add_parser_tokens_and_shared_estree_conversion branch 2 times, most recently from 4d88151 to eaa2671 Compare February 17, 2026 16:44
@camc314 camc314 force-pushed the c/02-17-feat_oxlint_integrate_shared_estree_tokens_and_remove_ts_fallback branch from 9227d04 to 3786fce Compare February 17, 2026 16:44
@camc314 camc314 force-pushed the c/02-17-feat_parser_estree_coverage_add_parser_tokens_and_shared_estree_conversion branch from eaa2671 to d67073b Compare February 17, 2026 16:56
@camc314 camc314 force-pushed the c/02-17-feat_oxlint_integrate_shared_estree_tokens_and_remove_ts_fallback branch 3 times, most recently from 27fa34e to bccce5b Compare February 17, 2026 17:02
@camc314 camc314 force-pushed the c/02-17-feat_parser_estree_coverage_add_parser_tokens_and_shared_estree_conversion branch 2 times, most recently from 5cb52ed to 56e8c4f Compare February 17, 2026 17:18
@camc314 camc314 force-pushed the c/02-17-feat_oxlint_integrate_shared_estree_tokens_and_remove_ts_fallback branch 2 times, most recently from 66a4929 to 2abe9e4 Compare February 17, 2026 21:44
@camc314 camc314 force-pushed the c/02-17-feat_parser_estree_coverage_add_parser_tokens_and_shared_estree_conversion branch 2 times, most recently from a7e3db8 to 5d93223 Compare February 17, 2026 21:53
@camc314 camc314 force-pushed the c/02-17-feat_oxlint_integrate_shared_estree_tokens_and_remove_ts_fallback branch from 2abe9e4 to 139b42e Compare February 17, 2026 21:53
@camc314 camc314 force-pushed the c/02-17-feat_parser_estree_coverage_add_parser_tokens_and_shared_estree_conversion branch from 5d93223 to 53e2396 Compare February 17, 2026 22:26
@camc314 camc314 force-pushed the c/02-17-feat_oxlint_integrate_shared_estree_tokens_and_remove_ts_fallback branch 2 times, most recently from 80efac4 to f218e2a Compare February 18, 2026 09:56
@camc314 camc314 force-pushed the c/02-17-feat_parser_estree_coverage_add_parser_tokens_and_shared_estree_conversion branch from 53e2396 to a13b812 Compare February 18, 2026 09:56
@camc314 camc314 force-pushed the c/02-17-feat_parser_estree_coverage_add_parser_tokens_and_shared_estree_conversion branch from a13b812 to 28676ac Compare February 18, 2026 10:12
This was referenced Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast-tools Area - AST tools A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins A-parser Area - Parser C-enhancement Category - New feature or request C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants