Vite+ 1.5.0 pins Oxlint 1.91.0 with effect-local immutability false positives
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 71/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bun, react, rust, typescript, vite
Hướng nghiên cứu
Bắt đầu với phiên bản Oxlint được ghim trong toolchain của Vite+ và kiểm tra cách phiên bản phát hành được chọn. Chạy ví dụ tái hiện được cung cấp bằng vp lint --config .oxlintrc.json repro.tsx với Vite+ 1.5.0, sau đó so sánh analyzer được ghim với bản sửa lỗi Oxlint đã được hợp nhất trong #28820. Hoàn tất khi một bản phát hành Vite+ có analyzer đã sửa và ví dụ tái hiện kết thúc mà không có false positive.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Vite+ 1.5.0 pins Oxlint 1.91.0, which reports valid effect-local variable updates as react/immutability errors. This blocks consumers that keep the React correctness rules enabled when upgrading the Vite+ toolchain together.
The underlying regression is described in oxc-project/oxc#28401, closed by #28820. The fix is merged, but the current published Oxlint release is still 1.91.0 and the published Vite+ pin still reproduces it. This report tracks the consuming toolchain release; it does not request a separate implementation of the analyzer fix.
Reproduction
With [email protected] installed, create .oxlintrc.json:
{"categories":{"correctness":"off"},"plugins":["react"],"rules":{"react/immutability":"error"}}
Create repro.tsx:
import { useEffect, useState } from "react";
export function useElapsedSeconds(enabled: boolean) {
const [seconds, setSeconds] = useState(0);
useEffect(() => {
if (!enabled) return;
let previous = new Date();
const poll = window.setInterval(() => {
const next = new Date();
setSeconds(value => value + (next.valueOf() - previous.valueOf()) / 1000);
previous = next;
}, 1000);
return () => window.clearInterval(poll);
}, [enabled]);
return seconds;
}
Run vp lint --config .oxlintrc.json repro.tsx.
Actual: exit 1 at previous = next with react/immutability: Cannot reassign variable after render completes.
Expected: no diagnostic. previous is created inside each effect invocation and cannot mutate a render-scope binding. The same pattern affects effect-local cancellation flags and timer handles, so consumers would otherwise need unnecessary application rewrites or to weaken lint coverage.
Please include the released analyzer repair in a Vite+ release once available, keeping the toolchain pins coordinated. Verified on macOS arm64 with Bun 1.4.4; this example uses the Vite+ lint command and a minimal rule configuration.
- Ngôn ngữ chính
- Rust
- Star
- 6.5k
- Fork
- 297
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 245
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
triage: not actionable
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
voidzero-dev/vite-plus#3296 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
voidzero-dev/vite-plus#3235 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docker guide: the runtime stage needs libatomic1 for Node.js 25 and laterCó thể đã có người làm @kshanxs đã nhận 12 ngày trước. Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
voidzero-dev/vite-plus#3219 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/vite-plus#2882 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vp create react-router aborts Vite+ integration when create-react-router Git commit failsCó thể đã có người làm @chbaefront đã nhận hôm nay. Đang mởpending triage triage: failed
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
voidzero-dev/vite-plus#3362 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/datafusion-iceberg#100 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: cua-driver skill fails Agent Skills frontmatter validationCó thể đã có người làm @Mearman đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/tools bug session-analysis
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
oracle/rust-oracledb#66 ·
-
`PrimitiveArray::validate_decimal_precision` rejects every decimal array with a negative scaleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày