feat(linter/plugins)!: do not export NodeOrToken type#16806
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. |
64333ca to
bf13eba
Compare
6821b23 to
3d24979
Compare
There was a problem hiding this comment.
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
NodeOrTokenfrom the public type exports inapps/oxlint/src-js/index.ts, aligning the package surface area with the intent thatNodeOrTokenremains an internal alias (i.e.,Node | Token | Comment).
Affected export
export type { ... } from "./plugins/types.ts"no longer includesNodeOrToken.
There was a problem hiding this comment.
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
NodeOrTokenexport fromapps/oxlint/src-js/index.ts(breaking change)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
babcbb4 to
a211e0f
Compare
bf13eba to
393b470
Compare
393b470 to
f6b9e5d
Compare
a211e0f to
1973405
Compare
f6b9e5d to
272c4c9
Compare
eeff8a9 to
e2d81cd
Compare
272c4c9 to
e35c4a8
Compare
Merge activity
|
Unnecessary to export this type, as it's just an alias for `Node | Token | Comment`. Remove it.
e2d81cd to
f814c82
Compare
e35c4a8 to
e654c13
Compare

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