Skip to content

chore(lint): enable e18e rules with oxlint - #6075

Merged
fengmk2 merged 1 commit into
mainfrom
chore/e18e-eslint-plugin
Oct 16, 2026
Merged

fengmk2 merged 1 commit into
mainfrom
chore/e18e-eslint-plugin

Conversation

@fengmk2

@fengmk2 fengmk2 commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Add @e18e/eslint-plugin to oxlint to detect avoidable allocations and older JavaScript patterns. Use the shared dependency catalog for the plugin version. Enable 12 compatible rules and update existing code to satisfy them.

Keep dependency replacements and regular-expression relocation outside this change. Disable .concat() spread fixes because oxlint lacks the required type information. Defer the three array-copy rules because the TypeScript configuration targets ES2022.

Summary by CodeRabbit

  • Chores

    • Updated code quality checks to enforce modern JavaScript patterns across the project.
  • Refactor

    • Applied consistent modern JavaScript methods across application logic and tests. These changes preserve existing behavior.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 15:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d256a256-981d-4efa-bea0-1464f867a91a
📥 Commits

Reviewing files that changed from the base of the PR and between 2448031 and 972dcc3.

📒 Files selected for processing: 33
  • .oxlintrc.json
  • .utoo.toml
  • package.json
  • packages/cookies/test/cookies.test.ts
  • packages/egg/src/app/extend/request.ts
  • packages/egg/src/lib/application.ts
  • packages/egg/test/app/extend/application.test.ts
  • packages/egg/test/egg.test.ts
  • packages/egg/test/lib/core/loader/load_service.test.ts
  • packages/egg/test/lib/core/messenger/ipc.test.ts
  • packages/egg/test/lib/plugins/development.test.ts
  • plugins/development/test/timing.test.ts
  • plugins/schedule/test/utils.ts
  • plugins/security/src/app/extend/application.ts
  • plugins/security/src/lib/helper/spath.ts
  • plugins/security/src/lib/middlewares/csp.ts
  • plugins/view-nunjucks/src/lib/helper.ts
  • plugins/view/src/lib/view_manager.ts
  • tegg/core/agent-runtime/src/AgentRuntime.ts
  • tegg/core/common-util/test/StackUtil.test.ts
  • tegg/core/controller-decorator/src/model/HTTPMethodMeta.ts
  • tegg/core/core-decorator/src/util/PrototypeUtil.ts
  • tegg/core/core-decorator/src/util/QualifierUtil.ts
  • tegg/core/dal-runtime/src/SqlUtil.ts
  • tegg/core/dal-runtime/src/TableSqlMap.ts
  • tegg/core/eventbus-decorator/src/EventInfoUtil.ts
  • tegg/core/metadata/src/factory/EggPrototypeCreatorFactory.ts
  • tegg/core/metadata/src/impl/InjectObjectPrototypeFinder.ts
  • tegg/core/metadata/src/model/ProtoDescriptorHelper.ts
  • tegg/core/runtime/src/impl/InnerObjectLoadUnitBuilder.ts
  • tegg/plugin/langchain/src/lib/graph/GraphLoadUnitHook.ts
  • tegg/plugin/langchain/src/lib/graph/GraphPrototypeHook.ts
  • tools/egg-bundler/test/EntryGenerator.test.ts
+-----------------------------------------------------------------+
| This PR is a classic: 'small change' with 'large consequences'. |
+-----------------------------------------------------------------+
  \
   \     /)/)
        ( '')
        /  |
      o(___)
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying egg-v3 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 972dcc3
Status: ✅  Deploy successful!
Preview URL: https://ecd51dca.egg-v3.pages.dev
Branch Preview URL: https://chore-e18e-eslint-plugin.egg-v3.pages.dev

View logs

@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.01%. Comparing base (2448031) to head (972dcc3).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tegg/core/dal-runtime/src/SqlUtil.ts 0.00% 0 Missing and 2 partials ⚠️
...ugin/langchain/src/lib/graph/GraphPrototypeHook.ts 0.00% 0 Missing and 2 partials ⚠️
packages/egg/src/lib/application.ts 0.00% 0 Missing and 1 partial ⚠️
...metadata/src/factory/EggPrototypeCreatorFactory.ts 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6075      +/-   ##
==========================================
+ Coverage   83.65%   84.01%   +0.36%     
==========================================
  Files         734      734              
  Lines       22639    22638       -1     
  Branches     4560     4559       -1     
==========================================
+ Hits        18938    19019      +81     
+ Misses       3201     3128      -73     
+ Partials      500      491       -9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying egg with  Cloudflare Pages  Cloudflare Pages

Latest commit: 972dcc3
Status: ✅  Deploy successful!
Preview URL: https://6d1f5c6c.egg-cci.pages.dev
Branch Preview URL: https://chore-e18e-eslint-plugin.egg-cci.pages.dev

View logs

@fengmk2
fengmk2 merged commit 7f69524 into main Oct 16, 2026
34 of 37 checks passed
@fengmk2
fengmk2 deleted the chore/e18e-eslint-plugin branch October 16, 2026 15:31
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