From 7b360e18c8cc24758465a108ee3a9a31a4f631ce Mon Sep 17 00:00:00 2001 From: adamXbot <111877622+adamXbot@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:40:22 +1000 Subject: [PATCH] fix(lint): sort package.json fields for ultracite 7.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `pnpm lint` has failed on every branch, including main, since the Renovate bump in #154. That PR raised ultracite 7.9.4 -> 7.10.0, which added `assist/source/useSortedPackageJson`, and the repo's package.json does not satisfy it. #154 was itself merged with a red `quality` job. This is the second CI break from that one PR — it also bumped packageManager to pnpm@11.18.0, whose default 24h `minimumReleaseAge` rejected the ultracite version the same commit introduced, until it aged out. Applying the sort rather than switching the rule off. biome.jsonc does disable the sibling `useSortedKeys`, but for two stated reasons and the non-negotiable one — object key order being observable in persisted `snapshot_json`, where `getChangelog` compares rows byte-identically — does not apply to package.json. The other reason, cosmetic churn across ~600 files, is one file here. A rule that is merely opinionated is not worth a config exception. Purely a reordering: keys, values, scripts, dependencies and devDependencies all compare equal to the previous file. Co-Authored-By: Claude Opus 5 --- package.json | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 38092b2..75ee18b 100644 --- a/package.json +++ b/package.json @@ -3,34 +3,30 @@ "version": "0.1.2", "private": true, "license": "Apache-2.0", - "packageManager": "pnpm@11.18.0", - "engines": { - "node": ">=24.0.0 <27.0.0" - }, "scripts": { - "dev": "next dev", + "audit:repo-settings": "node scripts/audit-github-settings.mjs", "build": "next build", - "start": "next start", + "build:standalone": "cross-env BUILD_STANDALONE=1 next build --webpack && node ./scripts/stage-standalone.mjs", + "build:standalone:dev": "cross-env BUILD_STANDALONE=1 next build --webpack && node ./scripts/stage-standalone.mjs", + "build-storybook": "storybook build", + "dev": "next dev", "lint": "ultracite check", "lint:fix": "ultracite fix", "lint:i18n": "node scripts/check-i18n-parity.mjs", - "pretypecheck": "next typegen", - "typecheck": "tsc --noEmit", + "screenshots": "node scripts/capture-screenshots.mjs", + "smoke:release": "node --import tsx --import ./tests/helpers/setup-env.ts --test tests/app/release-smoke.test.ts", + "start": "next start", + "storybook": "storybook dev -p 6006", + "tauri": "tauri", + "tauri:build": "tauri build", + "tauri:dev": "node scripts/ensure-standalone-stub.mjs && tauri dev --features devtools", "test": "node --conditions=react-server --import tsx --import ./tests/helpers/setup-env.ts --test tests/app/**/*.test.ts", "test:coverage": "rm -rf coverage && mkdir -p coverage/v8 && NODE_V8_COVERAGE=coverage/v8 node --conditions=react-server --experimental-test-coverage --import tsx --import ./tests/helpers/setup-env.ts --test tests/app/**/*.test.ts", "test:e2e": "playwright test", "test:ios-import-helper": "python3 -m unittest discover -s tests/ios-app-import -p '*_test.py'", "test:tauri": "cargo test --manifest-path src-tauri/Cargo.toml", - "smoke:release": "node --import tsx --import ./tests/helpers/setup-env.ts --test tests/app/release-smoke.test.ts", - "screenshots": "node scripts/capture-screenshots.mjs", - "audit:repo-settings": "node scripts/audit-github-settings.mjs", - "build:standalone": "cross-env BUILD_STANDALONE=1 next build --webpack && node ./scripts/stage-standalone.mjs", - "build:standalone:dev": "cross-env BUILD_STANDALONE=1 next build --webpack && node ./scripts/stage-standalone.mjs", - "tauri": "tauri", - "tauri:dev": "node scripts/ensure-standalone-stub.mjs && tauri dev --features devtools", - "tauri:build": "tauri build", - "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build" + "pretypecheck": "next typegen", + "typecheck": "tsc --noEmit" }, "dependencies": { "@dnd-kit/core": "^6.3.1", @@ -67,5 +63,9 @@ "tsx": "^4.22.4", "typescript": "^6.0.3", "ultracite": "7.10.0" + }, + "packageManager": "pnpm@11.18.0", + "engines": { + "node": ">=24.0.0 <27.0.0" } }