Skip to content

fix: reverse order of regex fields in tokens#179

Merged
overlookmotel merged 2 commits intomainfrom
om/02-24-fix_reverse_order_of_regex_fields_in_tokens
Feb 24, 2026
Merged

fix: reverse order of regex fields in tokens#179
overlookmotel merged 2 commits intomainfrom
om/02-24-fix_reverse_order_of_regex_fields_in_tokens

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Feb 24, 2026

Re-order fields of regex object in tokens in snapshots so pattern is before flags. Our convention in Oxc is that object fields are in source order, so we'd like to reverse the fields from the order Espree and TS-ESLint have them in.

We need the snapshots in this repo to have that same order, so conformance tests pass.

Copy link
Copy Markdown
Member Author

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

@overlookmotel overlookmotel marked this pull request as ready for review February 24, 2026 13:13
Copilot AI review requested due to automatic review settings February 24, 2026 13:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request. There are 300 or more changed files, try reducing the number of files in this pull request and requesting a review from Copilot again.

@overlookmotel overlookmotel merged commit bab2391 into main Feb 24, 2026
1 check passed
@overlookmotel overlookmotel deleted the om/02-24-fix_reverse_order_of_regex_fields_in_tokens branch February 24, 2026 13:14
overlookmotel added a commit that referenced this pull request Feb 24, 2026
overlookmotel added a commit that referenced this pull request Feb 24, 2026
I made a mistake in #179 and #180. The snapshot changes were inaccurate. Reverting and I'll try again.
@overlookmotel
Copy link
Copy Markdown
Member Author

The snapshots in this PR were wrong as my dependencies were out of date. Reverted in #181 and done again correctly in #182.

overlookmotel added a commit that referenced this pull request Feb 24, 2026
Re-order fields of `regex` object in tokens in snapshots so `pattern` is before `flags`. Our convention in Oxc is that object fields are in source order, so we'd like to reverse the fields from the order Espree and TS-ESLint have them in.

We need the snapshots in this repo to have that same order, so conformance tests pass.

(2nd attempt after #179)
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