refactor(linter): remove CliRunResult from TsGoLintState#13119
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. |
b7c6756 to
7fcd4d6
Compare
17e2219 to
59d4dc6
Compare
Merge activity
|
Goal is there are no references for `oxlint` functions. Now move `TsGoLintState` to `oxc_linter` so the server can use it too 🥳
59d4dc6 to
28628a5
Compare
Goal is there are no references for `oxlint` functions. Now move `TsGoLintState` to `oxc_linter` so the server can use it too 🥳
28628a5 to
cc2a85b
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the TsGoLintState by removing its dependency on CliRunResult and simplifying its error handling. The goal is to eliminate references to oxlint functions so that TsGoLintState can be moved to oxc_linter for broader use.
- Simplified
TsGoLintState::lintmethod to returnResult<(), String>instead ofOption<CliRunResult> - Moved error handling and stdout printing responsibility from
TsGoLintStateto the caller inLintRunner - Removed imports for
CliRunResultandprint_and_flush_stdoutfrom the tsgolint module
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/oxlint/src/tsgolint.rs | Simplified lint method signature and error handling, removed CLI-specific dependencies |
| apps/oxlint/src/lint.rs | Updated caller to handle error printing and return appropriate CliRunResult |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Goal is there are no references for
oxlintfunctions.Now move
TsGoLintStatetooxc_linterso the server can use it too 🥳