fix(tools): fix type-checking in Oxlint plugin#17015
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. |
There was a problem hiding this comment.
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.jsontopluginsdirectory with appropriate compiler options for ESNext module resolution - Updated
package.jsoninpluginsdirectory with required dependencies and metadata - Renamed plugin file from
oxlint-plugin.mtstooxlint-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.
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.
f8f7521 to
04e1458
Compare
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.

#16982 moved the Oxlint JS plugin that we use for linting this repo into
pluginsdirectory.Add a
tsconfig.jsonfile to this directly so TS understands it. Also rename the plugin file to.ts- it only had to be.mtspreviously because it was in root of the repo.