fix(lint): add ignoreBooleanCoercion with scope resolution to useNullishCoalescing#9936
fix(lint): add ignoreBooleanCoercion with scope resolution to useNullishCoalescing#9936SAY-5 wants to merge 1 commit intobiomejs:mainfrom
Conversation
…useNullishCoalescing The new option suppresses diagnostics for || expressions inside Boolean() calls, but only when Boolean resolves to the global built-in constructor. If Boolean is shadowed by a local binding, the diagnostic still fires. Closes #9842
🦋 Changeset detectedLatest commit: 9effd69 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
WalkthroughThis PR introduces a new Possibly related PRs
Suggested labels
Suggested reviewers
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #9842.
Added ignoreBooleanCoercion option (default false) to useNullishCoalescing. When enabled, suppresses || diagnostics inside Boolean() calls only when Boolean refers to the global built-in. If Boolean is shadowed locally, the diagnostic still fires.