Skip to content

Comments

fix(tools): fix type-checking in Oxlint plugin#17015

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-17-fix_tools_fix_type-checking_in_oxlint_plugin
Dec 17, 2025
Merged

fix(tools): fix type-checking in Oxlint plugin#17015
graphite-app[bot] merged 1 commit intomainfrom
12-17-fix_tools_fix_type-checking_in_oxlint_plugin

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Dec 17, 2025

#16982 moved the Oxlint JS plugin that we use for linting this repo into plugins directory.

Add a tsconfig.json file to this directly so TS understands it. Also rename the plugin file to .ts - it only had to be .mts previously because it was in root of the repo.

@github-actions github-actions bot added the C-bug Category - Bug label Dec 17, 2025
Copy link
Member Author

overlookmotel commented Dec 17, 2025


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.

@overlookmotel overlookmotel marked this pull request as ready for review December 17, 2025 18:35
Copilot AI review requested due to automatic review settings December 17, 2025 18:35
@overlookmotel overlookmotel self-assigned this Dec 17, 2025
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

This PR fixes TypeScript type-checking for the Oxlint JS plugin by adding proper TypeScript configuration to the plugins directory. The plugin file is renamed from .mts to .ts since it no longer needs the .mts extension outside the repository root.

  • Added tsconfig.json to plugins directory with appropriate compiler options for ESNext module resolution
  • Updated package.json in plugins directory with required dependencies and metadata
  • Renamed plugin file from oxlint-plugin.mts to oxlint-plugin.ts

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
plugins/tsconfig.json Adds TypeScript configuration with module preservation, bundler resolution, and strict type checking options
plugins/package.json Adds package metadata including @types/node dependency, marks as private, sets module type, and defines Node.js engine requirement
plugins/oxlint-plugin.ts Plugin implementation file renamed from .mts to .ts extension
oxlintrc.json Updates jsPlugins path reference from ./plugins/oxlint-plugin.mts to ./plugins/oxlint-plugin.ts
pnpm-lock.yaml Adds @types/[email protected] dependency for the plugins package
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 17, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 17, 2025

Merge activity

#16982 moved the Oxlint JS plugin that we use for linting this repo into `plugins` directory.

Add a `tsconfig.json` file to this directly so TS understands it. Also rename the plugin file to `.ts` - it only had to be `.mts` previously because it was in root of the repo.
@graphite-app graphite-app bot force-pushed the 12-17-fix_tools_fix_type-checking_in_oxlint_plugin branch from f8f7521 to 04e1458 Compare December 17, 2025 19:07
@graphite-app graphite-app bot merged commit 04e1458 into main Dec 17, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 12-17-fix_tools_fix_type-checking_in_oxlint_plugin branch December 17, 2025 19:13
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 17, 2025
qinyuhang pushed a commit to qinyuhang/oxc that referenced this pull request Jan 22, 2026
oxc-project#16982 moved the Oxlint JS plugin that we use for linting this repo into `plugins` directory.

Add a `tsconfig.json` file to this directly so TS understands it. Also rename the plugin file to `.ts` - it only had to be `.mts` previously because it was in root of the repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants