chore(lint): use external schema URLs for oxlint/oxfmt configs#302
Merged
chore(lint): use external schema URLs for oxlint/oxfmt configs#302
Conversation
Use remote schema URLs from oxc-project/oxc repository instead of local node_modules paths. This ensures schema validation works even before dependencies are installed.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the JSON schema references in oxlint and oxfmt configuration files from local node_modules paths to remote GitHub URLs, enabling schema validation before dependencies are installed.
Changes:
- Updated schema references to use remote URLs from the oxc-project/oxc repository instead of local paths
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.oxlintrc.jsonc |
Changed $schema to use GitHub raw content URL for oxlint schema |
.oxfmtrc.jsonc |
Changed $schema to use GitHub raw content URL for oxfmt schema |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
Inspired by ryoppippi/gray-matter-es#5
Test plan
pnpm lintpassesSummary by cubic
Switch the $schema fields in .oxlintrc.jsonc and .oxfmtrc.jsonc to the oxc-project remote URLs. Schema validation and editor hints now work even before dependencies are installed.
Written for commit 9f0a896. Summary will update on new commits.