Skip to content

feat(linter/plugins)!: do not export NodeOrToken type#16806

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-13-feat_linter_plugins_do_not_export_nodeortoken_type
Dec 13, 2025
Merged

feat(linter/plugins)!: do not export NodeOrToken type#16806
graphite-app[bot] merged 1 commit intomainfrom
12-13-feat_linter_plugins_do_not_export_nodeortoken_type

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Dec 13, 2025

Unnecessary to export this type, as it's just an alias for Node | Token | Comment. Remove it.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-enhancement Category - New feature or request labels Dec 13, 2025
Copy link
Copy Markdown
Member Author

overlookmotel commented Dec 13, 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.

@overlookmotel overlookmotel self-assigned this Dec 13, 2025
@overlookmotel overlookmotel changed the base branch from 12-12-fix_linter_plugins_use_typescript_parser_directly_for_getting_tokens to graphite-base/16806 December 13, 2025 18:42
@overlookmotel overlookmotel force-pushed the 12-13-feat_linter_plugins_do_not_export_nodeortoken_type branch from 64333ca to bf13eba Compare December 13, 2025 18:42
@overlookmotel overlookmotel changed the base branch from graphite-base/16806 to 12-12-fix_linter_plugins_use_typescript_parser_directly_for_getting_tokens December 13, 2025 18:42
@overlookmotel overlookmotel marked this pull request as ready for review December 13, 2025 18:43
Copilot AI review requested due to automatic review settings December 13, 2025 18:43
Copy link
Copy Markdown

@charliecreates charliecreates bot left a comment

Choose a reason for hiding this comment

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

No issues found in the modified code. The change cleanly removes NodeOrToken from the public API surface as intended, without introducing additional logic or complexity.

Summary of changes

Summary

  • Removed NodeOrToken from the public type exports in apps/oxlint/src-js/index.ts, aligning the package surface area with the intent that NodeOrToken remains an internal alias (i.e., Node | Token | Comment).

Affected export

  • export type { ... } from "./plugins/types.ts" no longer includes NodeOrToken.

Copy link
Copy Markdown
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 removes the NodeOrToken type from the public API exports. The type is a simple alias for Node | Token | Comment, and since all three constituent types are already exported, users can construct this union type themselves if needed.

Key Changes:

  • Remove NodeOrToken export from apps/oxlint/src-js/index.ts (breaking change)

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

@graphite-app graphite-app bot force-pushed the 12-12-fix_linter_plugins_use_typescript_parser_directly_for_getting_tokens branch 2 times, most recently from babcbb4 to a211e0f Compare December 13, 2025 18:59
@graphite-app graphite-app bot force-pushed the 12-13-feat_linter_plugins_do_not_export_nodeortoken_type branch from bf13eba to 393b470 Compare December 13, 2025 18:59
@overlookmotel overlookmotel force-pushed the 12-13-feat_linter_plugins_do_not_export_nodeortoken_type branch from 393b470 to f6b9e5d Compare December 13, 2025 21:13
@overlookmotel overlookmotel force-pushed the 12-12-fix_linter_plugins_use_typescript_parser_directly_for_getting_tokens branch from a211e0f to 1973405 Compare December 13, 2025 21:13
@overlookmotel overlookmotel force-pushed the 12-13-feat_linter_plugins_do_not_export_nodeortoken_type branch from f6b9e5d to 272c4c9 Compare December 13, 2025 22:12
@overlookmotel overlookmotel force-pushed the 12-12-fix_linter_plugins_use_typescript_parser_directly_for_getting_tokens branch 2 times, most recently from eeff8a9 to e2d81cd Compare December 13, 2025 22:20
@overlookmotel overlookmotel force-pushed the 12-13-feat_linter_plugins_do_not_export_nodeortoken_type branch from 272c4c9 to e35c4a8 Compare December 13, 2025 22:20
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 13, 2025
@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app bot commented Dec 13, 2025

Merge activity

Unnecessary to export this type, as it's just an alias for `Node | Token | Comment`. Remove it.
@graphite-app graphite-app bot force-pushed the 12-12-fix_linter_plugins_use_typescript_parser_directly_for_getting_tokens branch from e2d81cd to f814c82 Compare December 13, 2025 22:55
@graphite-app graphite-app bot force-pushed the 12-13-feat_linter_plugins_do_not_export_nodeortoken_type branch from e35c4a8 to e654c13 Compare December 13, 2025 22:56
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 13, 2025
Base automatically changed from 12-12-fix_linter_plugins_use_typescript_parser_directly_for_getting_tokens to main December 13, 2025 23:01
@graphite-app graphite-app bot merged commit e654c13 into main Dec 13, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 12-13-feat_linter_plugins_do_not_export_nodeortoken_type branch December 13, 2025 23:01
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-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants