Skip to content

♻️ refactor(vscode): migrate linter from ESLint to oxlint#1263

Merged
harehare merged 1 commit intomainfrom
refactor/vscode-eslint-to-oxlint
Feb 11, 2026
Merged

♻️ refactor(vscode): migrate linter from ESLint to oxlint#1263
harehare merged 1 commit intomainfrom
refactor/vscode-eslint-to-oxlint

Conversation

@harehare
Copy link
Copy Markdown
Owner

No description provided.

Replace ESLint and @typescript-eslint plugins with oxlint for faster
linting in the VSCode extension. Equivalent lint rules are preserved
in the new .oxlintrc.json configuration.
Copilot AI review requested due to automatic review settings February 11, 2026 06:45
Copy link
Copy Markdown
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

Refactors the VS Code extension’s linting setup by replacing ESLint + typescript-eslint with oxlint.

Changes:

  • Switched the lint npm script to run oxlint instead of eslint.
  • Removed ESLint configuration and dependencies.
  • Added an .oxlintrc.json configuration for TypeScript linting.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
editors/vscode/package.json Replaces the lint script and devDependencies to use oxlint.
editors/vscode/eslint.config.mjs Removes the previous ESLint flat config.
editors/vscode/.oxlintrc.json Adds oxlint configuration, including TypeScript plugin and rule overrides.
Files not reviewed (1)
  • editors/vscode/package-lock.json: Language not supported

@@ -0,0 +1,29 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript"],
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config declares the typescript plugin, but several rules are referenced with the @typescript-eslint/ prefix. With this mismatch, these rules are likely not recognized/applied by oxlint (or may cause config validation errors). Update the rule IDs to the correct oxlint TypeScript rule namespace (per the oxlint schema/docs), or adjust the plugins list to match the rule prefixes you intend to use.

Copilot uses AI. Check for mistakes.
Comment on lines +18 to +21
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "error",
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config declares the typescript plugin, but several rules are referenced with the @typescript-eslint/ prefix. With this mismatch, these rules are likely not recognized/applied by oxlint (or may cause config validation errors). Update the rule IDs to the correct oxlint TypeScript rule namespace (per the oxlint schema/docs), or adjust the plugins list to match the rule prefixes you intend to use.

Suggested change
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "error",
"typescript/no-explicit-any": "error",
"typescript/no-require-imports": "error",
"typescript/no-this-alias": "error",
"typescript/no-unnecessary-type-constraint": "error",

Copilot uses AI. Check for mistakes.
@harehare harehare merged commit 36eb0d6 into main Feb 11, 2026
6 checks passed
@harehare harehare deleted the refactor/vscode-eslint-to-oxlint branch February 11, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants