- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 710
 
          refactor(linter/plugins): move token-related SourceCode methods into separate file
          #14770
        
          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
  
    refactor(linter/plugins): move token-related SourceCode methods into separate file
  
  #14770
              Conversation
          
 How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue: 
 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.  | 
    
There was a problem hiding this 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.
          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.
3781b22    to
    cd068aa      
    Compare
  
    
Pure refactor. Move methods of
SourceCoderelated to tokens into a separate file, to make mainsource_code.jsfile less crowded.