fix-lint-rule
Fix every violation of one ESLint or Biome rule.
Fix every violation of one ESLint or Biome rule. Category: lint. Scope: medium.
omot bench start fix-lint-rule --param rule=prefer-const --agent <your-agent>For Biome, pass a rule such as style/useConst or lint/style/useConst:
omot bench start fix-lint-rule --param rule=style/useConst --agent <your-agent>Parameters
| Name | Kind | Description | Example |
|---|---|---|---|
rule | rule | An ESLint rule ID or Biome group/rule or lint/group/rule. | prefer-const or style/useConst |
Preconditions
- The selected linter is installed locally and configured with the rule enabled.
- At least one violation of the rule at the baseline.
- A test script (scripts.test).
Outcomes
- pass: The linter reports zero violations of the rule, no new disable or ignore comments or linter config changes, and the test script passes.
- partial: Violations dropped but not to zero, or they reached zero by disabling or ignoring the rule, changing the linter configuration, new parse/internal errors hide violations, or tests fail.
- fail: The violation count did not drop, or the linter could not run.
How it is verified
- For ESLint, runs the locally installed
eslint . --format jsonand counts messages whoseruleIdis the rule. For Biome, runsbiome lint . --reporter=github --max-diagnostics=noneand counts diagnostics whose title matches the normalized Biome rule ID. New parse or internal errors make the result partial because violations in those files cannot be counted. - The baseline count is recorded at start. New
eslint-disableorbiome-ignoredirectives that cover the rule (or a whole group), and changes to ESLint or Biome config files, make the result partial. - Runs the
testscript. - The test exit code is recorded at start. A failure that also occurred at baseline is not counted against the agent; if baseline scripts were skipped, a later failure is reported with unknown baseline health.
The prompt and verifier live in packages/benchmarks/src/tasks/fix-lint-rule. Changing either requires a version bump in task.json.