Skip to content

Require typed JSON output for new Hydrogen commands - #4041

Merged
gonzaloriestra merged 1 commit into
mainfrom
gonzalo/json-output-lint
Sep 23, 2026
Merged

gonzaloriestra merged 1 commit into
mainfrom
gonzalo/json-output-lint

Conversation

@gonzaloriestra

@gonzaloriestra gonzaloriestra commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Related to https://github.com/shop/issues-develop/issues/23663

Hydrogen's ESLint configuration does not enforce the shared typed JSON output contract. New commands can therefore omit a JSON flag and result schema while the existing command inventory is being migrated.

WHAT is this pull request doing?

Enable @shopify/cli/command-json-output for Hydrogen command source files and add a local exception list: 23 existing finite commands awaiting migration and 3 streaming commands. Document when to remove an exception. Raise the root ESLint version to 9.39.5 to satisfy the plugin's dependencies.

Depends on Shopify/cli#8576 (already merged).

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or functional changes. Test changes or internal-only config changes do not require a changeset.
  • I've added tests to cover my changes
  • I've added or updated the documentation

@shopify

shopify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Oxygen deployed a preview of your gonzalo/json-output-lint branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment September 23, 202612:32 PM

Learn more about Hydrogen's GitHub integration.

@gonzaloriestra
gonzaloriestra marked this pull request as ready for review September 18, 2026 09:32
@gonzaloriestra
gonzaloriestra requested a review from a team as a code owner September 18, 2026 09:32
Comment thread package.json Outdated
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-output-lint branch from 4736b01 to a4454dd Compare September 23, 2026 12:30
@gonzaloriestra
gonzaloriestra dismissed graygilmore’s stale review September 23, 2026 13:07

Pending change already done

@gonzaloriestra
gonzaloriestra merged commit f867118 into main Sep 23, 2026
20 checks passed
@gonzaloriestra
gonzaloriestra deleted the gonzalo/json-output-lint branch September 23, 2026 13:07
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.

4 participants