oxc-project
oxc
BlogDocsChangelog

feat(linter/plugins): support fixes

#14094Merged
Comparing
09-22-feat_linter_plugins_support_fixes
(
9c3afea
) with
main
(
ffc810d
)
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%
732.9 ms732.8 ms
linter[binder.ts]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
88.5 ms88.5 ms
linter[react.development.js]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
32.8 ms32.8 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
ffc810d
-0.01%
feat(linter/plugins): support fixes (#14094) Add support for fixes in JS plugins. ```js export const noDebuggerRule = { create(context) { return { DebuggerStatement(node) { return context.report({ message: 'Remove this filth!', node, fix(fixer) { return fixer.remove(node); }, }); }, }; }, }; ``` All of [ESLint's fixer APIs](https://eslint.org/docs/latest/extend/custom-rules#applying-fixes) are supported. Note: Suggestions are not implemented yet, only fixes.
9c3afea
2 months ago
by overlookmotel
© 2025 CodSpeed Technology
Home Terms Privacy Docs