Skip to content

refactor(linter): remove fixer eslint compat option#22076

Merged
graphite-app[bot] merged 1 commit into
mainfrom
codex/remove-eslint-compat-options
May 2, 2026
Merged

refactor(linter): remove fixer eslint compat option#22076
graphite-app[bot] merged 1 commit into
mainfrom
codex/remove-eslint-compat-options

Conversation

@camc314

@camc314 camc314 commented May 2, 2026

Copy link
Copy Markdown
Contributor

Remove the now-redundant fixer eslint_compat option now that ESLint-compatible adjacent-fix handling is the only behavior.

follow on from #22071

Copilot AI review requested due to automatic review settings May 2, 2026 11:07
@camc314 camc314 self-assigned this May 2, 2026
@camc314
camc314 requested a review from overlookmotel as a code owner May 2, 2026 11:07
@camc314 camc314 added the A-linter Area - Linter label May 2, 2026
@camc314
camc314 changed the base branch from codex/adjacent-fixes-overlap to main May 2, 2026 11:09
@camc314
camc314 force-pushed the codex/remove-eslint-compat-options branch from f99fa22 to 8034d30 Compare May 2, 2026 11:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the now-redundant “ESLint compat” toggle for fix-overlap handling, making boundary-adjacent fixes always be treated as overlapping (ESLint behavior) across the Rust fixer and the JS/plugin-facing fix application path.

Changes:

  • Removes the Fixer eslint_compat option and with_eslint_compat builder, and simplifies overlap detection to always treat adjacent ranges as overlapping.
  • Updates the JS NAPI binding (applyFixes) and RuleTester fix application path to drop the eslintCompat argument for fix application.
  • Updates/streamlines adjacent-fix tests to reflect the single behavior.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
crates/oxc_linter/src/fixer/mod.rs Removes the ESLint-compat toggle and makes adjacent-fix overlap behavior unconditional.
apps/oxlint/test/rule_tester.test.ts Updates adjacent-fix test expectations to match the single overlap behavior.
apps/oxlint/src/js_plugins/fix.rs Changes NAPI apply_fixes binding signature to remove the compat flag.
apps/oxlint/src-js/package/rule_tester.ts Stops threading eslintCompat into fix application; updates calls accordingly.
apps/oxlint/src-js/bindings.d.ts Updates the TS declaration for applyFixes to the new 2-arg signature.

Comment thread crates/oxc_linter/src/fixer/mod.rs
Comment thread apps/oxlint/src/js_plugins/fix.rs
@codspeed-hq

codspeed-hq Bot commented May 2, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 4 untouched benchmarks
⏩ 47 skipped benchmarks1


Comparing codex/remove-eslint-compat-options (8034d30) with main (2047a35)

Open in CodSpeed

Footnotes

  1. 47 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label May 2, 2026

camc314 commented May 2, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

Remove the now-redundant fixer eslint_compat option now that ESLint-compatible adjacent-fix handling is the only behavior.

follow on from #22071
@graphite-app
graphite-app Bot force-pushed the codex/remove-eslint-compat-options branch from 8034d30 to bc1408c Compare May 2, 2026 11:35
@graphite-app
graphite-app Bot merged commit bc1408c into main May 2, 2026
27 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label May 2, 2026
@graphite-app
graphite-app Bot deleted the codex/remove-eslint-compat-options branch May 2, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants