Skip to content

refactor(linter/plugins): clarify types#20069

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/03-06-refactor_linter_plugins_clarify_types
Mar 6, 2026
Merged

refactor(linter/plugins): clarify types#20069
graphite-app[bot] merged 1 commit intomainfrom
om/03-06-refactor_linter_plugins_clarify_types

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Mar 6, 2026

Small refactor. Import VisitorObject from where it's actually defined, instead of the alias in types.ts which renames it to Visitor. We also have a different type called Visitor so using the alias is a bit confusing.

Copy link
Member Author

overlookmotel commented Mar 6, 2026


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 the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Mar 6, 2026
@overlookmotel overlookmotel force-pushed the om/03-06-test_linter_plugins_add_types_test_for_visitorobject_ branch from 63ddbdb to 8ee5a16 Compare March 6, 2026 14:37
@overlookmotel overlookmotel force-pushed the om/03-06-refactor_linter_plugins_clarify_types branch from c0fdcb3 to 28b7eec Compare March 6, 2026 14:37
@overlookmotel overlookmotel force-pushed the om/03-06-test_linter_plugins_add_types_test_for_visitorobject_ branch from 8ee5a16 to f88a63f Compare March 6, 2026 15:37
@overlookmotel overlookmotel force-pushed the om/03-06-refactor_linter_plugins_clarify_types branch from 28b7eec to 33b8af5 Compare March 6, 2026 15:37
@overlookmotel overlookmotel marked this pull request as ready for review March 6, 2026 15:47
@overlookmotel overlookmotel requested a review from camc314 as a code owner March 6, 2026 15:47
Copilot AI review requested due to automatic review settings March 6, 2026 15:47
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

Refactors the JS plugin visitor compiler typing to use VisitorObject from its generated source type, avoiding the confusing Visitor alias in plugins/types.ts (which clashes with other “Visitor” concepts).

Changes:

  • Replace Visitor type import (alias) with direct VisitorObject import from generated/visitor.d.ts.
  • Update addVisitorToCompiled signature to accept VisitorObject.

@graphite-app graphite-app bot force-pushed the om/03-06-test_linter_plugins_add_types_test_for_visitorobject_ branch from f88a63f to e4f3e09 Compare March 6, 2026 16:09
@graphite-app graphite-app bot force-pushed the om/03-06-refactor_linter_plugins_clarify_types branch from 33b8af5 to 5f8e97f Compare March 6, 2026 16:09
@overlookmotel overlookmotel force-pushed the om/03-06-test_linter_plugins_add_types_test_for_visitorobject_ branch from e4f3e09 to cd83465 Compare March 6, 2026 16:17
@overlookmotel overlookmotel force-pushed the om/03-06-refactor_linter_plugins_clarify_types branch from 5f8e97f to 35432f7 Compare March 6, 2026 16:17
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Mar 6, 2026
@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 6, 2026

Merge activity

@graphite-app graphite-app bot changed the base branch from om/03-06-test_linter_plugins_add_types_test_for_visitorobject_ to graphite-base/20069 March 6, 2026 17:30
@overlookmotel overlookmotel force-pushed the om/03-06-refactor_linter_plugins_clarify_types branch from 35432f7 to dbd1cb6 Compare March 6, 2026 17:37
@overlookmotel overlookmotel changed the base branch from graphite-base/20069 to om/03-06-test_linter_plugins_add_types_test_for_visitorobject_ March 6, 2026 17:37
Base automatically changed from om/03-06-test_linter_plugins_add_types_test_for_visitorobject_ to main March 6, 2026 17:38
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 6, 2026
Small refactor. Import `VisitorObject` from where it's actually defined, instead of the alias in `types.ts` which renames it to `Visitor`. We also have a different type called `Visitor` so using the alias is a bit confusing.
@graphite-app graphite-app bot force-pushed the om/03-06-refactor_linter_plugins_clarify_types branch from dbd1cb6 to 391ab14 Compare March 6, 2026 17:39
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Mar 6, 2026
@graphite-app graphite-app bot merged commit 391ab14 into main Mar 6, 2026
19 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 6, 2026
@graphite-app graphite-app bot deleted the om/03-06-refactor_linter_plugins_clarify_types branch March 6, 2026 17:46
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.

3 participants