oxc-project
oxc
BlogDocsChangelog

refactor(linter): simplify built-in lint plugin checks

#14518Merged
Comparing
10-11-refactor_linter_simplify_built-in_lint_plugin_checks
(
9e9c5ba
) with
main
(
a9e1261
)
CodSpeed Performance Gauge
0%
Untouched
4
Skipped
33

Benchmarks

Skipped (33)

Passed

linter[cal.com.tsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
724.1 ms724 ms
linter[binder.ts]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
87.8 ms87.8 ms
linter[react.development.js]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
32.7 ms32.7 ms
linter[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms

Commits

Click on a commit to change the comparison range
Base
main
a9e1261
-0.02%
refactor(linter): simplify built-in lint plugin checks (#14518) Instead of checking that `plugin != "eslint"`, we can update `LintPlugins::from` to be `LintPlugins::try_from`, which allows for us to represent the default ESLint plugin. If it's any built-in plugin, this will return `Ok(LintPlugins::SomePlugin)`. If it's not a builtin, it will return `Err`. Previously, we had to check if it was empty and if it was not `eslint` plugin (since it was always empty by definition).
9e9c5ba
23 days ago
by camchenry
© 2025 CodSpeed Technology
Home Terms Privacy Docs