chore(ui): add prettier-plugin-packagejson to enforce key ordering#11172
Open
pfe-nazaries wants to merge 1 commit into
Open
chore(ui): add prettier-plugin-packagejson to enforce key ordering#11172pfe-nazaries wants to merge 1 commit into
pfe-nazaries wants to merge 1 commit into
Conversation
Contributor
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
4f5650e to
685f85e
Compare
Contributor
|
Please add an entry to the corresponding |
Contributor
🔒 Container Security ScanImage: 📊 Vulnerability Summary
2 package(s) affected
|
Adds prettier-plugin-packagejson@2.5.22 as a devDependency and registers it in .prettierrc.json before prettier-plugin-tailwindcss so prettier keeps ui/package.json keys in the conventional npm order. Reformatting package.json is a no-op functional change (key ordering only). Verified with `pnpm exec prettier --check package.json` and `pnpm run healthcheck`. Refs: WebstormProjects-7b1 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
685f85e to
5198b02
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
ui/package.jsonand thepnpm.overridesblock had grown an ad-hoc key ordering that diverged across edits, making diffs noisy and prone to merge conflicts. Addingprettier-plugin-packagejsonautomates a canonical ordering so future edits stay diff-friendly without manual sorting.Description
prettier-plugin-packagejson@2.5.22as adevDependencyinui/package.json.ui/.prettierrc.jsonalongsideprettier-plugin-tailwindcss.ui/package.json(scripts, dependencies, devDependencies, andpnpm.overrides).ui/dependency-log.jsonandui/pnpm-lock.yamlto reflect the new devDependency.No runtime/behavior changes — purely tooling and key ordering inside
package.json.Steps to review
ui/.prettierrc.jsonto confirm the plugin is registered beforeprettier-plugin-tailwindcss.ui/package.jsonand verify the reorderedscripts,pnpm.overrides, and the newprettier-plugin-packagejsondevDependency.ui/, runpnpm installand then./node_modules/.bin/prettier --check package.json— should report no changes.ui/package.json, run./node_modules/.bin/prettier --write package.json, and confirm it gets re-sorted automatically.Checklist
Community Checklist
SDK/CLI
UI
API
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.