Skip to content

refactor: avoid non-primitive values in ternary branches - #573

Merged
BenPinet merged 7 commits into
nextfrom
feat/ternary_primitive_only
Nov 3, 2026
Merged

BenPinet merged 7 commits into
nextfrom
feat/ternary_primitive_only

Conversation

@JulienChampagnol

@JulienChampagnol JulienChampagnol commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Rollout

The oxlint config and plugin are not part of this PR: they reach the repo through the prepare workflow once actions#93 is merged. This branch is already clean for that rule (0 violations).

Test plan

  • oxlint with the new rule: 0 violations; no other lint finding added compared to next
  • Type-check and unit tests: not run locally (lint-only verification), please rely on CI
  • CI

🤖 Generated with Claude Code

Replace the ternaries flagged by local/ternary-primitive-only with
if statements and small helpers, keeping the evaluation order.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@JulienChampagnol
JulienChampagnol force-pushed the feat/ternary_primitive_only branch from 69e4674 to 80fe3db Compare November 3, 2026 11:20
@JulienChampagnol JulienChampagnol changed the title feat(oxlint): only allow primitive values in ternary branches refactor: avoid non-primitive values in ternary branches Nov 3, 2026
JulienChampagnol and others added 6 commits November 3, 2026 15:04
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e_only

# Conflicts:
#	app/components/Viewer/Generic/Model/ModelEdgesCard.vue
#	app/components/Viewer/Generic/Model/ModelPointsCard.vue
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@BenPinet
BenPinet merged commit 206c109 into next Nov 3, 2026
27 checks passed
@BenPinet
BenPinet deleted the feat/ternary_primitive_only branch November 3, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants