Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Oct 19, 2025

Pure refactor. Move methods of SourceCode related to tokens into a separate file, to make main source_code.js file less crowded.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Oct 19, 2025
Copy link
Member Author

overlookmotel commented Oct 19, 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.

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

Refactor to extract token-related SourceCode methods into a dedicated module, reducing clutter in source_code.ts while preserving behavior.

  • Extracted token-related methods and related option types into plugins/tokens.ts
  • Delegated SourceCode token methods to the new tokens module
  • Updated public type exports to come from plugins/tokens.ts

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.

File Description
apps/oxlint/src-js/plugins/tokens.ts New module housing token-related SourceCode methods and option/type definitions.
apps/oxlint/src-js/plugins/source_code.ts Replaces inline token methods with delegations to tokens module; removes now-moved type definitions.
apps/oxlint/src-js/index.ts Re-exports token-related option types from tokens.ts instead of source_code.ts.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 19, 2025

Merge activity

…o separate file (#14770)

Pure refactor. Move methods of `SourceCode` related to tokens into a separate file, to make main `source_code.js` file less crowded.
@graphite-app graphite-app bot force-pushed the 10-19-refactor_linter_plugins_move_token-related_sourcecode_methods_into_separate_file branch from 3781b22 to cd068aa Compare October 19, 2025 12:16
@graphite-app graphite-app bot merged commit cd068aa into main Oct 19, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 10-19-refactor_linter_plugins_move_token-related_sourcecode_methods_into_separate_file branch October 19, 2025 12:22
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Oct 19, 2025
graphite-app bot pushed a commit that referenced this pull request Oct 19, 2025
…methods (#14776)

Fix a couple of errors in JSDoc comments, spotted by AI in review of #14770.
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 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.

2 participants