Conversation
✅ Deploy Preview for rslint canceled.
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR exposes the applyFixes functionality to the API, allowing users to programmatically apply lint fixes to TypeScript/JavaScript code. The change adds a new API endpoint that takes file content and diagnostics as input and returns the fixed content along with statistics about applied and unapplied fixes.
Key changes:
- Added
applyFixesfunction and related types to the public API - Implemented IPC communication for fix application between JS and Go layers
- Added comprehensive test coverage for the new functionality
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/rule-tester/src/index.ts | Added output field to TsDiagnostic interface |
| packages/rslint/tests/api.test.mjs | Added comprehensive test suite for applyFixes API with multiple scenarios |
| packages/rslint/src/service.ts | Added applyFixes method and related interfaces to RSLintService |
| packages/rslint/src/index.ts | Exposed applyFixes function and types in public API |
| packages/rslint/rstest.config.ts | Added test configuration file |
| internal/api/api.go | Added Go types and IPC handling for apply fixes functionality |
| cmd/rslint/api.go | Implemented the core fix application logic in the Go binary |
ScriptedAlchemy
pushed a commit
to ScriptedAlchemy/rslint
that referenced
this pull request
Aug 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
to support applyFix in js api to support testing autofix result
related #280