Skip to content

chore: version packages#33

Merged
stevensacks merged 1 commit into
mainfrom
changeset-release/main
Jun 25, 2026
Merged

chore: version packages#33
stevensacks merged 1 commit into
mainfrom
changeset-release/main

Conversation

@stevensacks

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@gaia-react/lint@1.7.0

Minor Changes

  • #32 55bb692 Thanks @stevensacks! - Flag rendering null from a JSX ternary via no-restricted-syntax.

    cond ? <JSX/> : null and cond ? null : <JSX/> are now error-level. Both
    are the boolean-guarded && render guard written the long way; use
    cond && <JSX/> instead (coerce a numeric/falsy guard with !!cond so the
    0 value can't leak into the output).

    The selectors are flag-only, with no autofix: a blind ? : null&& rewrite
    is unsafe because numeric-0 guards need !!, ??-fed values need
    : undefined, and ||-guards need per-operand coercion. A human applies the
    fix the selector points to.

    Both selectors only match a JSXElement/JSXFragment branch, so they are
    inert outside .tsx/.jsx. All no-restricted-syntax selectors are
    consolidated into one gaia/no-restricted-syntax config object, because ESLint
    flat config merges that rule key by replacement (last match wins), not
    concatenation.

    A consumer with a cond ? <JSX/> : null ternary will see a NEW lint failure on
    upgrade. That is the intent: convert it to &&.

@stevensacks stevensacks merged commit 4df38c9 into main Jun 25, 2026
1 check passed
@stevensacks stevensacks deleted the changeset-release/main branch June 25, 2026 18:39
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.

1 participant