Skip to content

chore: migrate to vp#5826

Draft
fengmk2 wants to merge 2 commits intoeslint-v9from
migrate-to-vp
Draft

chore: migrate to vp#5826
fengmk2 wants to merge 2 commits intoeslint-v9from
migrate-to-vp

Conversation

@fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Mar 8, 2026

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 8, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c804b7a1-f49a-4609-a25a-c8405bcb90a6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch migrate-to-vp

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 8, 2026

Deploying egg-v3 with  Cloudflare Pages  Cloudflare Pages

Latest commit: caeb49b
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 8, 2026

Deploying egg with  Cloudflare Pages  Cloudflare Pages

Latest commit: caeb49b
Status:🚫  Build failed.

View logs

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedeslint-plugin-node@​11.1.09710010075100
Addedeslint-plugin-eggache@​2.0.09610010079100
Addedeslint-plugin-jsdoc@​62.7.19710010096100

View full report

@socket-security
Copy link

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm @voidzero-dev/vite-plus-core is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: ?npm/@voidzero-dev/vite-plus-core@0.1.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@voidzero-dev/vite-plus-core@0.1.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request orchestrates a comprehensive migration of the project's development ecosystem to Vite Plus, a modern unified toolchain. The changes span across build configurations, linting setups, and documentation, aiming to streamline the development workflow and enhance consistency. The introduction of new tooling-specific files and extensive code style adjustments ensure the project aligns with contemporary best practices for Node.js development.

Highlights

  • Toolchain Migration: The project has been migrated to use Vite Plus (vp) as its unified development toolchain, replacing previous ESLint configurations and integrating new build and linting processes.
  • New Development Files: New configuration files for VSCode extensions and settings, along with a pre-commit hook and a comprehensive AGENTS.md documentation, have been added to support the new tooling.
  • Code Style and Import Adjustments: Numerous JavaScript and TypeScript files have undergone consistent code style changes, primarily converting string literals from single to double quotes and updating Node.js built-in module imports to use the 'node:' prefix.
  • Documentation Updates: Project documentation, including contributing guidelines and various tutorial and core concept articles, has been updated to reflect the new tooling and improve formatting.
  • Package Dependency Changes: The package.json has been updated to include vite-plus and related development dependencies, along with pnpm overrides for Vite and Vitest, and new script commands for vp.
Changelog
  • .github/FUNDING.yml
    • Added a blank line for formatting.
  • .github/ISSUE_TEMPLATE/bug-report.yml
    • Adjusted indentation for placeholder text.
  • .vite-hooks/pre-commit
    • Added a new pre-commit hook using 'vp staged'.
  • .vscode/extensions.json
    • Added VSCode recommendation for 'oxc.oxc-vscode'.
  • .vscode/settings.json
    • Configured VSCode to use 'oxc.oxc-vscode' as the default formatter and enable format on save.
  • AGENTS.md
    • Added a new markdown file detailing the usage and workflow of Vite+.
  • CONTRIBUTING.md
    • Adjusted indentation for code blocks and list items.
  • CONTRIBUTING.zh-CN.md
    • Adjusted indentation for code blocks and list items.
    • Changed asterisk to underscore for emphasis in a list item.
  • History.md
    • Reformatted version headers from '===' to '#' for better markdown rendering.
    • Changed bullet points from '*' to '-' for consistency.
  • agent.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
  • app/extend/context.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Added 'void' operator to '_runInBackground' call.
  • app/extend/helper.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Reformatted 'urlFor' method for better readability.
  • app/extend/request.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Adjusted array key regex pattern.
    • Added curly braces for 'maxIpsCount' conditional block.
    • Removed an empty line.
  • app/extend/response.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Adjusted header key access for consistency.
  • app/middleware/body_parser.js
    • Changed 'require' path from single quotes to double quotes.
  • app/middleware/meta.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' path to use double quotes.
  • app/middleware/notfound.js
    • Changed string literals from single quotes to double quotes.
  • app/middleware/override_method.js
    • Changed 'require' path from single quotes to double quotes.
  • app/middleware/site_file.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' path to use double quotes.
  • config/config.default.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Reformatted array initializations for better readability.
  • config/config.local.js
    • Changed string literal from single quotes to double quotes.
  • config/config.unittest.js
    • Changed string literal from single quotes to double quotes.
  • config/plugin.js
    • Changed string literals from single quotes to double quotes.
  • eslint.config.mjs
    • Removed the ESLint configuration file.
  • index.d.ts
    • Updated import paths to use 'node:' prefix for built-in modules.
    • Changed string literals to double quotes.
    • Adjusted type definitions for 'HttpClientResponse', 'Request', 'Response', 'EggLoggerConfig', 'CustomLoaderConfig', 'Router', 'EggApplication', 'FileStream', 'Context', 'EggEnvType', and 'PowerPartial'.
  • index.js
    • Changed 'require' paths from single quotes to double quotes.
  • index.test-d.ts
    • Changed import path from single quotes to double quotes.
  • lib/agent.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Adjusted event listener names for consistency.
  • lib/application.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Adjusted event listener names and error messages.
  • lib/core/base_context_class.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
  • lib/core/base_context_logger.js
    • Changed string literals from single quotes to double quotes.
  • lib/core/base_hook_class.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
  • lib/core/context_httpclient.js
    • Changed 'request' method to not be 'async' and directly return the 'curl' promise.
  • lib/core/dnscache_httpclient.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Adjusted event emission for consistency.
  • lib/core/fetch_factory.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
  • lib/core/httpclient.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
  • lib/core/httpclient_next.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
  • lib/core/logger.js
    • Changed string literals from single quotes to double quotes.
  • lib/core/messenger/index.js
    • Changed string literals from single quotes to double quotes.
  • lib/core/messenger/ipc.js
    • Changed string literals from single quotes to double quotes.
    • Updated event listener names for consistency.
  • lib/core/messenger/local.js
    • Changed string literals from single quotes to double quotes.
  • lib/core/singleton.js
    • Changed string literals from single quotes to double quotes.
  • lib/core/utils.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
  • lib/egg.js
    • Changed string literals from single quotes to double quotes.
    • Updated 'require' paths to use double quotes.
    • Adjusted event listener names and deprecation messages.
  • lib/loader/agent_worker_loader.js
    • Changed 'require' path from single quotes to double quotes.
  • lib/loader/app_worker_loader.js
    • Changed 'require' path from single quotes to double quotes.
  • lib/loader/index.js
    • Changed 'require' paths from single quotes to double quotes.
  • lib/start.js
    • Changed string literals from single quotes to double quotes.
  • package.json
    • Updated 'keywords' for better discoverability.
    • Added 'homepage', 'license', 'repository', 'files', 'main', and 'types' fields.
    • Modified 'publishConfig' to specify access and tag.
    • Updated 'scripts' to use 'vp' commands for linting, testing, and preparation.
    • Added new development dependencies for ESLint and 'vite-plus'.
    • Added 'packageManager' and 'pnpm.overrides' for Vite and Vitest.
  • site/app.ts
    • Changed string literals from single quotes to double quotes.
  • site/config/config.ts
    • Changed string literals from single quotes to double quotes.
  • site/docs/advanced/cluster-client.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/advanced/cluster-client.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/advanced/framework.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/advanced/framework.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/advanced/loader-update.zh-CN.md
    • Removed a blank line for cleaner formatting.
  • site/docs/advanced/loader.md
    • Changed string literals from single quotes to double quotes.
    • Updated table formatting for better presentation.
  • site/docs/advanced/loader.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
    • Updated table formatting for better presentation.
  • site/docs/advanced/plugin.md
    • Removed blank lines for cleaner formatting.
    • Changed string literals from single quotes to double quotes.
    • Simplified keywords array in JSON example.
  • site/docs/advanced/plugin.zh-CN.md
    • Removed blank lines for cleaner formatting.
    • Changed string literals from single quotes to double quotes.
    • Simplified keywords array in JSON example.
  • site/docs/advanced/view-plugin.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/advanced/view-plugin.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/app-start.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/app-start.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/config.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/config.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/controller.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/controller.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/extend.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/extend.zh-CN.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/middleware.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/middleware.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/objects.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/objects.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/plugin.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/plugin.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/router.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/router.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/schedule.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/schedule.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/service.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/service.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/basics/structure.zh-CN.md
    • Removed a blank line for cleaner formatting.
  • site/docs/community/CONTRIBUTING.zh-CN.md
    • Removed blank lines for cleaner formatting.
    • Changed asterisk to underscore for emphasis.
    • Added blank lines for improved formatting.
  • site/docs/community/faq.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/community/faq.zh-CN.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/community/style-guide.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/community/style-guide.zh-CN.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/cluster-and-ipc.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/cluster-and-ipc.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/cookie-and-session.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/cookie-and-session.zh-CN.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/deployment.md
    • Changed string literal from single quotes to double quotes.
  • site/docs/core/deployment.zh-CN.md
    • Added blank line for improved formatting.
    • Changed string literal from single quotes to double quotes.
  • site/docs/core/development.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/development.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/error-handling.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/error-handling.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
    • Updated table formatting.
  • site/docs/core/httpclient.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/httpclient.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/i18n.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/i18n.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/logger.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/logger.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/security.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/security.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/unittest.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/unittest.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/view.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/core/view.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/intro/egg-and-koa.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/intro/egg-and-koa.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/intro/migration.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/intro/migration.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/intro/progressive.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/intro/progressive.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/intro/quickstart.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/intro/quickstart.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/assets.zh-CN.md
    • Added blank line for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/index.zh-CN.md
    • Updated table formatting for better presentation.
  • site/docs/tutorials/mysql.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/mysql.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/passport.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/passport.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/proxy.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/proxy.zh-CN.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/restful.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/restful.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/socketio.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/socketio.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/typescript.md
    • Changed string literals from single quotes to double quotes.
  • site/docs/tutorials/typescript.zh-CN.md
    • Added blank lines for improved formatting.
    • Changed string literals from single quotes to double quotes.
  • site/global.less
    • Reformatted 'font-family' property for better readability.
  • site/typings.d.ts
    • Changed string literals from single quotes to double quotes.
  • test/agent.test.js
    • Changed string literals from single quotes to double quotes.
  • test/app/extend/agent.test.js
    • Changed string literals from single quotes to double quotes.
  • test/app/extend/application.test.js
    • Changed string literals from single quotes to double quotes.
  • test/app/extend/context.jsonp.test.js
    • Changed string literals from single quotes to double quotes.
  • test/app/extend/context.test.js
    • Changed string literals from single quotes to double quotes.
  • test/app/extend/helper.test.js
    • Changed string literals from single quotes to double quotes.
  • test/app/extend/request.test.js
    • Changed string literals from single quotes to double quotes.
  • test/app/extend/response.test.js
    • Changed string literals from single quotes to double quotes.
  • test/app/middleware/body_parser.test.js
    • Changed string literals from single quotes to double quotes.
Ignored Files
  • Ignored by pattern: .github/workflows/** (4)
    • .github/workflows/codeql-analysis.yml
    • .github/workflows/gh-pages.yml
    • .github/workflows/nodejs-3.x.yml
    • .github/workflows/release.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the project to the Vite+ (vp) toolchain, a significant change that touches many files. The majority of the changes are stylistic, resulting from the adoption of a new formatter (oxc), such as converting single quotes to double quotes and reformatting code. The PR also updates dependencies, scripts in package.json, and VS Code settings to support the new toolchain. I have reviewed the changes and they appear correct and consistent with the migration. I did not find any issues to report.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the project to use the vp toolchain, which includes oxc for linting and formatting. The changes are extensive but primarily consist of code reformatting (like changing single quotes to double quotes), updating the package.json to reflect the new tooling, and removing the old ESLint configuration. New configuration files for VSCode and a pre-commit hook for vp have been added, along with documentation for the new workflow. The changes appear to be consistent and correctly apply the new formatting rules across the codebase.

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.

1 participant