Avatar for the oxc-project user
oxc-project
oxc
BlogDocsChangelog

fix(linter): Add more tests for `prefer-const`'s fixer and fix its invalid behavior.

#18747Merged
Comparing
prefer-const-tests
(
76a5a5e
) with
main
(
a4c8966
)
CodSpeed Performance Gauge
0%
Untouched
46
Skipped
3

Benchmarks

3 total
formatter[binder.ts]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
Skipped
21.2 ms*
formatter[cal.com.tsx]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
Skipped
188.5 ms*
formatter[react.development.js]
tasks/benchmark/benches/formatter.rs::formatter::bench_formatter
Skipped
10.7 ms*

Commits

Click on a commit to change the comparison range
Base
main
a4c8966
+0.04%
test(linter): Add more tests for prefer-const's fixer.
ab266a5
25 days ago
by connorshea
-0.01%
Oops.
0057a95
25 days ago
by connorshea
+0.06%
fix(linter): don't fix prefer-const when variable lacks initializer
76a5a5e
25 days ago
by connorshea
© 2026 CodSpeed Technology
Home Terms Privacy Docs