Skip to content

Register prefer-options-object-param in the lighter bundle too - #29

Merged
Mearman merged 1 commit into
mainfrom
fix/prefer-options-object-param-both-bundles
Sep 19, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/prefer-options-object-param-both-bundles

Conversation

@Mearman

@Mearman Mearman commented Sep 19, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #28. exadev/prefer-options-object-param reads no type information at all, so excluding it from plugin.configs.recommended withheld a real, zero-cost protection from exactly the consumer that lighter bundle exists for — the family-placement rationale in #28 didn't actually hold up next to prefer-readonly-object-param/prefer-numeric-sort-compare, which are excluded from that bundle for a genuine technical reason (they need the checker to work at all).

Changes

  • src/plugin.ts: added 'exadev/prefer-options-object-param': 'error' to configs.recommended.rules, and rewrote the surrounding comment to state plainly that it needs no type info and lives in both bundles, matching no-mutable-union-array-param/prefer-readonly-array-param/test-file-kind/max-params.
  • src/rules/prefer-options-object-param.ts: updated the rule's own file header to match.
  • src/plugin.unit.test.ts: added an assertion that plugin.configs.recommended.rules['exadev/prefer-options-object-param'] is 'error', mirroring the existing checks for the other both-bundle rules.
  • README.md and the rule's own test file comment: updated to match.

Test plan

  • pnpm test — 805 tests green, including the new assertion.
  • pnpm typecheck / pnpm lint / pnpm build — clean.

…le too

It reads no type information at all, so excluding it from
plugin.configs.recommended withheld a real, zero-cost protection from
exactly the consumer that lighter bundle exists for. Registers it in
both bundles, matching no-mutable-union-array-param/
prefer-readonly-array-param/test-file-kind/max-params, and updates
every comment that previously described the exclusion as deliberate.
@Mearman
Mearman marked this pull request as ready for review September 19, 2026 10:05
@Mearman
Mearman merged commit 4994124 into main Sep 19, 2026
6 checks passed
@Mearman
Mearman deleted the fix/prefer-options-object-param-both-bundles branch September 19, 2026 10:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-19T10:09:02.583958Z f3387b5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.20.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant