[PR #25899] perf(web): optimize ESLint performance with concurrency flag and remove oxlint #31252

Closed
opened 2026-02-21 20:49:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/25899

State: closed
Merged: Yes


Summary

  • Added --concurrency=auto flag to all ESLint scripts, reducing linting time by ~50%
  • Removed oxlint dependency as ESLint v9.35.0 provides sufficient performance

Changes

  • Updated ESLint from v9.32.0 to v9.35.0
  • Added --concurrency=auto to all ESLint commands in package.json
  • Removed oxlint from lint scripts and dependencies
  • Updated pnpm-lock.yaml accordingly

Performance Benefits

The --concurrency=auto flag allows ESLint to utilize all available CPU cores, significantly reducing linting time. Benchmarks show approximately 50% faster linting execution.

Why Remove oxlint?

With ESLint v9.35.0's improved performance and built-in concurrency support, oxlint becomes redundant. Maintaining both linters adds unnecessary complexity and dependency overhead.

Test Plan

  • Verified ESLint runs correctly with new concurrency flag
  • Confirmed linting completes successfully without oxlint
  • Tested build and type checking remain unaffected
**Original Pull Request:** https://github.com/langgenius/dify/pull/25899 **State:** closed **Merged:** Yes --- ## Summary - Added --concurrency=auto flag to all ESLint scripts, reducing linting time by ~50% - Removed oxlint dependency as ESLint v9.35.0 provides sufficient performance ## Changes - Updated ESLint from v9.32.0 to v9.35.0 - Added --concurrency=auto to all ESLint commands in package.json - Removed oxlint from lint scripts and dependencies - Updated pnpm-lock.yaml accordingly ## Performance Benefits The --concurrency=auto flag allows ESLint to utilize all available CPU cores, significantly reducing linting time. Benchmarks show approximately 50% faster linting execution. ## Why Remove oxlint? With ESLint v9.35.0's improved performance and built-in concurrency support, oxlint becomes redundant. Maintaining both linters adds unnecessary complexity and dependency overhead. ## Test Plan - [x] Verified ESLint runs correctly with new concurrency flag - [x] Confirmed linting completes successfully without oxlint - [x] Tested build and type checking remain unaffected
yindo added the pull-request label 2026-02-21 20:49:07 -05:00
yindo closed this issue 2026-02-21 20:49:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31252