Skip to content

Comments

refactor(linter/plugins): rename tokensAndComments var#16500

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-04-refactor_linter_plugins_rename_tokensandcomments_var
Dec 4, 2025
Merged

refactor(linter/plugins): rename tokensAndComments var#16500
graphite-app[bot] merged 1 commit intomainfrom
12-04-refactor_linter_plugins_rename_tokensandcomments_var

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Dec 4, 2025

Pure refactor. Rename tokensWithComments to tokensAndComments, to match ESLint.

Copy link
Member Author

overlookmotel commented Dec 4, 2025


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-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Dec 4, 2025
@overlookmotel overlookmotel force-pushed the 12-04-refactor_linter_plugins_rename_tokensandcomments_var branch 2 times, most recently from a8ee644 to 71e5a9e Compare December 4, 2025 14:40
@overlookmotel overlookmotel force-pushed the 12-04-feat_linter_plugins_add_sourcecode_isestree_property branch from 1425b32 to cbd7d22 Compare December 4, 2025 14:40
@overlookmotel overlookmotel marked this pull request as ready for review December 4, 2025 16:13
Copilot AI review requested due to automatic review settings December 4, 2025 16:13
Copy link
Contributor

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.

Pull request overview

This PR performs a pure refactoring to align the internal naming convention with ESLint by renaming the internal variable tokensWithComments to tokensAndComments throughout the tokens plugin implementation. The change affects variable names, function names, comments, and error messages to maintain consistency.

  • Renamed internal variable tokensWithComments to tokensAndComments
  • Renamed initialization function initTokensWithComments() to initTokensAndComments()
  • Renamed debug validation function debugCheckTokensWithComments() to debugCheckTokensAndComments()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@overlookmotel overlookmotel self-assigned this Dec 4, 2025
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 4, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 4, 2025

Merge activity

Pure refactor. Rename `tokensWithComments` to `tokensAndComments`, to match ESLint.
@graphite-app graphite-app bot force-pushed the 12-04-feat_linter_plugins_add_sourcecode_isestree_property branch from cbd7d22 to d2ca540 Compare December 4, 2025 16:41
@graphite-app graphite-app bot force-pushed the 12-04-refactor_linter_plugins_rename_tokensandcomments_var branch from 71e5a9e to 333172f Compare December 4, 2025 16:41
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 4, 2025
Base automatically changed from 12-04-feat_linter_plugins_add_sourcecode_isestree_property to main December 4, 2025 16:47
@graphite-app graphite-app bot merged commit 333172f into main Dec 4, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 12-04-refactor_linter_plugins_rename_tokensandcomments_var branch December 4, 2025 16:48
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
…#16500)

Pure refactor. Rename `tokensWithComments` to `tokensAndComments`, to match ESLint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant