From 825431cd2eefcdb99c4f36df0825803d3a9b9a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9stor?= Date: Wed, 25 Nov 2026 12:14:41 +0100 Subject: [PATCH] chore: adopt oxlint and oxfmt --- .github/workflows/ci.yml | 1 + .github/workflows/release.yml | 1 + .husky/pre-commit | 2 +- .oxfmtrc.json | 17 + .oxlintrc.json | 16 + .prettierignore | 8 - .prettierrc.json | 6 - package.json | 9 +- packages/tanstack/src/node-entry-loader.ts | 3 +- packages/tanstack/src/server-functions.ts | 3 +- pnpm-lock.yaml | 448 ++++++++++++++++++++- test/release-contracts.test.mjs | 8 +- 12 files changed, 495 insertions(+), 27 deletions(-) create mode 100644 .oxfmtrc.json create mode 100644 .oxlintrc.json delete mode 100644 .prettierignore delete mode 100644 .prettierrc.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f71c5a..04a22f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,7 @@ jobs: cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm format:check + - run: pnpm lint - run: pnpm typecheck - run: pnpm build - run: pnpm test:core diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b9d3fa..4c17979 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,6 +61,7 @@ jobs: IFS=. read -r MAJOR MINOR PATCH <<< "$BASE_VERSION" npm pkg set version="${MAJOR}.${MINOR}.$((PATCH + 1))-next.${GITHUB_RUN_ID}" --prefix packages/tanstack - run: pnpm format:check + - run: pnpm lint - run: pnpm typecheck - run: pnpm build - run: pnpm exec playwright install --with-deps chromium diff --git a/.husky/pre-commit b/.husky/pre-commit index 0933fcc..fb6da48 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -pnpm format:check && pnpm typecheck +pnpm format:check && pnpm lint && pnpm typecheck diff --git a/.oxfmtrc.json b/.oxfmtrc.json new file mode 100644 index 0000000..5d4749a --- /dev/null +++ b/.oxfmtrc.json @@ -0,0 +1,17 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "semi": true, + "singleQuote": false, + "trailingComma": "all", + "printWidth": 100, + "sortPackageJson": false, + "ignorePatterns": [ + "dist", + "node_modules", + "pnpm-lock.yaml", + ".turbo", + "**/routeTree.gen.ts", + "packages/tanstack/CHANGELOG.md", + ".release-please-manifest.json" + ] +} diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 0000000..5834d43 --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,16 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": ["typescript", "unicorn", "oxc", "import", "react", "promise", "node"], + "categories": { + "correctness": "error" + }, + "env": { + "builtin": true, + "browser": true, + "node": true + }, + "rules": { + "react/set-state-in-effect": "off" + }, + "ignorePatterns": ["**/routeTree.gen.ts", "**/dist/**", "**/.output/**", "**/@mf-types/**"] +} diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index f12523c..0000000 --- a/.prettierignore +++ /dev/null @@ -1,8 +0,0 @@ -dist -node_modules -pnpm-lock.yaml -.turbo -**/routeTree.gen.ts -# Written by release-please -packages/tanstack/CHANGELOG.md -.release-please-manifest.json diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index bccee91..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "semi": true, - "singleQuote": false, - "trailingComma": "all", - "printWidth": 100 -} diff --git a/package.json b/package.json index a1a9ad7..23a21e6 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,10 @@ "test:core": "node --test --test-concurrency=1 test/*.test.mjs", "test:e2e": "node --test --test-concurrency=1 test/e2e/*.test.mjs", "typecheck": "turbo run typecheck", - "format": "prettier --write .", - "format:check": "prettier --check .", + "lint": "oxlint --deny-warnings", + "lint:fix": "oxlint --fix --deny-warnings", + "format": "oxfmt", + "format:check": "oxfmt --check", "prepare": "husky", "pack:tanstack": "pnpm --filter @module-federation/tanstack pack:dry", "start": "pnpm build:package && turbo run start", @@ -22,8 +24,9 @@ }, "devDependencies": { "husky": "9.1.7", + "oxfmt": "0.80.0", + "oxlint": "1.95.0", "playwright": "1.63.0", - "prettier": "3.9.9", "turbo": "2.11.7", "typescript": "7.0.2" } diff --git a/packages/tanstack/src/node-entry-loader.ts b/packages/tanstack/src/node-entry-loader.ts index 9b11310..5a5470e 100644 --- a/packages/tanstack/src/node-entry-loader.ts +++ b/packages/tanstack/src/node-entry-loader.ts @@ -300,7 +300,8 @@ function registerNodeSharedModules(origin: FederationHost) { if (!version) continue; const configured = origin.options.shared[packageName]?.[0] as - { scope?: string | string[]; shareConfig?: Record } | undefined; + | { scope?: string | string[]; shareConfig?: Record } + | undefined; shared[packageName] = { version, lib: () => resolved.require(resolved.path), diff --git a/packages/tanstack/src/server-functions.ts b/packages/tanstack/src/server-functions.ts index 6045fb2..cf09512 100644 --- a/packages/tanstack/src/server-functions.ts +++ b/packages/tanstack/src/server-functions.ts @@ -252,6 +252,7 @@ function registry(): Map { function currentStartRequest(): Request | undefined { const storage = (globalThis as Record)[START_STORAGE_KEY] as - { getStore(): { request?: Request } | undefined } | undefined; + | { getStore(): { request?: Request } | undefined } + | undefined; return storage?.getStore()?.request; } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c2d0cb2..402dd03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -169,12 +169,15 @@ importers: husky: specifier: 9.1.7 version: 9.1.7 + oxfmt: + specifier: 0.80.0 + version: 0.80.0 + oxlint: + specifier: 1.95.0 + version: 1.95.0 playwright: specifier: 1.63.0 version: 1.63.0 - prettier: - specifier: 3.9.9 - version: 3.9.9 turbo: specifier: 2.11.7 version: 2.11.7 @@ -825,6 +828,250 @@ packages: '@oxc-project/types@0.152.0': resolution: {integrity: sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw==} + '@oxfmt/binding-android-arm-eabi@0.80.0': + resolution: {integrity: sha512-IKgbKL684l/0zb1yAIr7YkqmUsZmO6O02ELkb+78SLFsDJAJxCtPtLypHGUGNpeOrsdIHXIZMxYGo/9QYSHuhg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxfmt/binding-android-arm64@0.80.0': + resolution: {integrity: sha512-fGqMAgBeKlE1CsnpKNuIlahJmJgYxLrOiwacsYdqK0fv8hu7flDAQN0MTa5joCoc0gfLV/RJKAKp0b6FsODGYQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxfmt/binding-darwin-arm64@0.80.0': + resolution: {integrity: sha512-6EyFZdBrB+86OK/C4CqqqRwRPnp/sLxzFf1vWg8Ghd369zAyNLkxAu9JMXnzkXoW491j7X7cRNs/ayuFs7hMwg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxfmt/binding-darwin-x64@0.80.0': + resolution: {integrity: sha512-ZZEKe4O/3qrRTYcMWVBpfBN3+ANDwwEGt5FijDw4Q31zqXDj8WXfnytWsTGu0sh3nJ7tLbIzypY+oYRCfb9ffg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxfmt/binding-freebsd-x64@0.80.0': + resolution: {integrity: sha512-yBTHy84SOBhag+A/KRMp0vctB0t5Vn6PjlVHfYWpqzWhWgvgktzdFplTSSV8Lu9oXY4Xr8EU+01N88J1S2tNCg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxfmt/binding-linux-arm-gnueabihf@0.80.0': + resolution: {integrity: sha512-HwSZYzbNF04nwduBcn0KZZ2kwnCuzEf8hCfsZ4bkRbDIzjIjhTsI6O3l+0sIKpU2F718szvkEfVPMkIksZ/NYQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm-musleabihf@0.80.0': + resolution: {integrity: sha512-rVPpw9dRTiBLgxdfySNhKihMTPy1SPb1+y+EDrVK0aUj/k8pm51zTANKfFr9bMgVxcDuGO227QwzZRhT0WQcHQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm64-gnu@0.80.0': + resolution: {integrity: sha512-1yZ3eWD9X2TcwpMt/SaQjlclyZqVVmBNh+62svgGBRZJIzWz4EIBq0ZMj5Unn20gzm3y9OLEnWdmJ4b9/izmLw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-arm64-musl@0.80.0': + resolution: {integrity: sha512-FTCv1p32lqfXNmicCXvluPACYrqqMChrI4bVJWh8UrvwlaxO9YkF3toLu6MaESav0e3X/GA7BkK2c7wyok7qyQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-ppc64-gnu@0.80.0': + resolution: {integrity: sha512-jl0ivd2WpjlWbe/sgcvW3E4CbJyxVXNBc9vVTSv1mNN28phPXczG97nXxWhdQu+oAikpXtyf5VAP41P4OT+48A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-gnu@0.80.0': + resolution: {integrity: sha512-Iu6q6EsvYtGag7pxQl9HV/k+lEv9SbatZb4fyrWYwIFeAivAl9NNh7o4kizpzsfDOIFKWSmEPkbhzKrucSdQZg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-musl@0.80.0': + resolution: {integrity: sha512-e6QIq9l1yHQuNp1u8+veTkQGOHBeayekax5ZfWoi2gwBGJoFVaq9Klovdt8wg/I8R+3eHQVB7yzhXekfMXozQw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-s390x-gnu@0.80.0': + resolution: {integrity: sha512-Fqs2/RNU3MaHvGvLinaRIhZbXJV6MwloGnyK0COfHbF4oTmfgfmdXzrMgk/04DD+0RfdZvdF/82DoaWbYWgfqA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-gnu@0.80.0': + resolution: {integrity: sha512-5ZZBWDHwGYsqprHma9UwFXNJfkTo4IXu/obbxhz8y/qsQfl/k00HQsXZYBnIlytEWjE1tZZmSimjIObqj8Jyog==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-musl@0.80.0': + resolution: {integrity: sha512-3hbDeK3hijv3zyoZm0kONLkqJbfd4nr0cfFL/veo1chgcnovp9lyiuFiFltCqFKs0qnuEz7qA99mee0Pcm+fXw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-openharmony-arm64@0.80.0': + resolution: {integrity: sha512-5ThMiM6QKqfWaOxtzq+HaYyrWe48MGg49pDc9ll5KFvPEPo2Hqagz0JSk6hhZ3vOF/7tIhGIGu3mVnVuulwMQA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxfmt/binding-win32-arm64-msvc@0.80.0': + resolution: {integrity: sha512-YEPyJo02Wc9fzHBqp8OofJVmb9i92PtYTfpUJ5oXmCOGjfiDoqVlIh7vGVts91LnKL8UZ3cyXuM3tuqPKoZ40g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxfmt/binding-win32-ia32-msvc@0.80.0': + resolution: {integrity: sha512-vimQJkghBVQO/+YEe6ybFaqUd2oMl2srd/jJFGgVlpdSOIWmOVIsBv9dn9SyjzSFXJnhDrBCtU0pnTutjNWnSg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxfmt/binding-win32-x64-msvc@0.80.0': + resolution: {integrity: sha512-kfJaMYppxdcTfZe+4Ify0uAVCgwEMFg/yp9WDnZ2Vh4KFd09dN5dgsomYDWN0UhzSTb9/OqDY3S7IczL+XOmaA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@oxlint/binding-android-arm-eabi@1.95.0': + resolution: {integrity: sha512-hJna6w3COWJjfMPxomjZL82klTdrITm56PEpCsfO/xMkzQw/fNtJWauQ/YEwQqVttj0L5vDIa8rCcuhfAE3L4w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxlint/binding-android-arm64@1.95.0': + resolution: {integrity: sha512-uAIGZQ9uJVUeogeWOSboI3F7twOuM4mNuZcHXD9+LdYLcWp7J6kbtRUXJ6GVqcs5E0Cjb4emmSBK9FNrkGuhqQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxlint/binding-darwin-arm64@1.95.0': + resolution: {integrity: sha512-Ogh1vfHO5vshKRop/He46r+WqC5BTqonYwhB4fp9e2gvOFvg1Xi6XsHTuM/lBSH85ZcaG+DS99EMAy9GcwDong==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxlint/binding-darwin-x64@1.95.0': + resolution: {integrity: sha512-kTrE1xfpQUBMMS50Ws6KY92N8OsJ8LE6JqxKqkHEY3KdsmguQ6kKVGSjzyt1HLwsSi0fQCvNRog8YRBBovD1AA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxlint/binding-freebsd-x64@1.95.0': + resolution: {integrity: sha512-ho7E1VCInK0VnpneRaI1BEpe1ceJE8VjxP2O9THWdReV6bth1Q4+80kYVGGK47mHRyZ2NGztQZ2dWRo6j1lavA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxlint/binding-linux-arm-gnueabihf@1.95.0': + resolution: {integrity: sha512-94afnouMHcnHr/OtRh07gG5LehC9M0GjiSoik3xxTtrmq6cWxXOTAhYlBtxa67u/GlycbnHlDoGJfYlTshcr/w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm-musleabihf@1.95.0': + resolution: {integrity: sha512-LEeclqV1/fafxPgJWN21Bri6HBBBZpEFluq/ZH7Avvu9HjJh/XOn6WwogJqX9X7pG2aITZ2nRH39+sUKEQt2WA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm64-gnu@1.95.0': + resolution: {integrity: sha512-EpXpEQKmgtkvc6RyU84LM1e3CrVDWQkgghVzf1hMGgwjBzgKAJ/QntHgnzmu5cNeLBfa7GPCY+gGXxEll8Adcg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-arm64-musl@1.95.0': + resolution: {integrity: sha512-+96Md8c2BAgFp8nWHrUrpqba87DoU+HVJYIun6qA+QKFoeNd3xAWq1JYE6da4nVli9GgwRpfncfRePcgmQQaIQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-ppc64-gnu@1.95.0': + resolution: {integrity: sha512-6yG99vsXct3Uv536w6Z1s03w2makRKnE0q3eJSmf+W/IwPmO56QLk8XUA6ebu/R5peCbJ67HmcWqACH+kg/6Bg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-gnu@1.95.0': + resolution: {integrity: sha512-Eir0Z4ldh55AsQUqVDlLF4Pw3lSFXIdAl8ZNgU8tp/gTwT9JVCzWY0o3+ys9pCcpTN0vCqBwwuQfAUxzbIgvcQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-musl@1.95.0': + resolution: {integrity: sha512-ceRx+K2WJ7C3tIv+XjZS28oAoZ7DY29ZcWChPdXG5M100phI72FRDYwGRlWZEeDfmkROnarLTMKnnrQAtsC42Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-s390x-gnu@1.95.0': + resolution: {integrity: sha512-WbD3sM08ZDk2QE6060wK/omihQKbRm+LVzKIg4W5zNTbEhYJChciqX49UZuqW59RGF+wBUxzAup7egUIESTjUA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-gnu@1.95.0': + resolution: {integrity: sha512-F4ST2ZkFIiLL9OKyRCyC0KQQpwM5WIv0GTcMiZuYVa6xSRJHR05iVRqst+arOVudEPkhP47EnbuoC9UfVCYDyg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-musl@1.95.0': + resolution: {integrity: sha512-hEpYDZatpuxLrWlTlkwhHZ1e8QkL02aFS55BPQX1XA9iOd+yUEADGFF1iY6z+xkw6RkpzXFrtnDFe4/JNOLSRA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxlint/binding-openharmony-arm64@1.95.0': + resolution: {integrity: sha512-+JwIH9/uLgQXfxBvOAKzvp616m5i0fBR5ELEBHm5D+++fStBZ+74T7YW4xBpX13zNU2blr52Swoe3GTF1JyqRg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxlint/binding-win32-arm64-msvc@1.95.0': + resolution: {integrity: sha512-pzJgcp3WkOSchukg5y5pn5mVIQ6P83RDI79YJ9gQZKed1pOgjhrmlc5AMizjuq6/P8VifhxzBsMqYI6LLjO2TA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxlint/binding-win32-ia32-msvc@1.95.0': + resolution: {integrity: sha512-54MeQvLRXkJqF1nEFs7wb73SrnurZJQy9fVK4NdEwumNKVwyUUxpGHhvfDMIY2NqJZS7kz0pY9uVty5664Gt1Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxlint/binding-win32-x64-msvc@1.95.0': + resolution: {integrity: sha512-I/Fn+Fed1qzb1k2uRjMe2VRtRN1+ZObyU+E76B6v/Ul3Z6JdeAW5zBHSe0n5d8a0ZyU4iorzVy0Rw9LYgo3MSQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + '@rolldown/binding-android-arm-eabi@1.2.12': resolution: {integrity: sha512-dB/a1214qKfHMXCpgqR4OZT+jS4kTyEXbQGJPqzobt5EwH5rX080pxE37alt3RzvR1bf1Yz/yGqRfrYAxuPw0A==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1634,6 +1881,35 @@ packages: resolution: {integrity: sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==} engines: {node: '>=18'} + oxfmt@0.80.0: + resolution: {integrity: sha512-jy8/kYEomtC6g1LqXDl1LEXk5Ih+c7a1jB5wxqEp8qBmDoOD7Ei+XCxU2jGEjGUdBfoPef6rDiSENVLJ5gWq+Q==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@astrojs/compiler-rs': ^0.5.0 + svelte: ^5.0.0 + vite-plus: '*' + peerDependenciesMeta: + '@astrojs/compiler-rs': + optional: true + svelte: + optional: true + vite-plus: + optional: true + + oxlint@1.95.0: + resolution: {integrity: sha512-eNzjFjm1TU02/+ohAJjOB7aekRQgTXhOWxMGscEm8VJMokNnnix+PCZn7kqIuGIqxAoBnHxatqlN3Chz3N6PKA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + oxlint-tsgolint: '>=7.0.2008' + vite-plus: '*' + peerDependenciesMeta: + oxlint-tsgolint: + optional: true + vite-plus: + optional: true + pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} @@ -1747,6 +2023,10 @@ packages: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} + tinypool@2.2.0: + resolution: {integrity: sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ==} + engines: {node: ^20.0.0 || >=22.0.0} + tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} @@ -2306,6 +2586,120 @@ snapshots: '@oxc-project/types@0.152.0': {} + '@oxfmt/binding-android-arm-eabi@0.80.0': + optional: true + + '@oxfmt/binding-android-arm64@0.80.0': + optional: true + + '@oxfmt/binding-darwin-arm64@0.80.0': + optional: true + + '@oxfmt/binding-darwin-x64@0.80.0': + optional: true + + '@oxfmt/binding-freebsd-x64@0.80.0': + optional: true + + '@oxfmt/binding-linux-arm-gnueabihf@0.80.0': + optional: true + + '@oxfmt/binding-linux-arm-musleabihf@0.80.0': + optional: true + + '@oxfmt/binding-linux-arm64-gnu@0.80.0': + optional: true + + '@oxfmt/binding-linux-arm64-musl@0.80.0': + optional: true + + '@oxfmt/binding-linux-ppc64-gnu@0.80.0': + optional: true + + '@oxfmt/binding-linux-riscv64-gnu@0.80.0': + optional: true + + '@oxfmt/binding-linux-riscv64-musl@0.80.0': + optional: true + + '@oxfmt/binding-linux-s390x-gnu@0.80.0': + optional: true + + '@oxfmt/binding-linux-x64-gnu@0.80.0': + optional: true + + '@oxfmt/binding-linux-x64-musl@0.80.0': + optional: true + + '@oxfmt/binding-openharmony-arm64@0.80.0': + optional: true + + '@oxfmt/binding-win32-arm64-msvc@0.80.0': + optional: true + + '@oxfmt/binding-win32-ia32-msvc@0.80.0': + optional: true + + '@oxfmt/binding-win32-x64-msvc@0.80.0': + optional: true + + '@oxlint/binding-android-arm-eabi@1.95.0': + optional: true + + '@oxlint/binding-android-arm64@1.95.0': + optional: true + + '@oxlint/binding-darwin-arm64@1.95.0': + optional: true + + '@oxlint/binding-darwin-x64@1.95.0': + optional: true + + '@oxlint/binding-freebsd-x64@1.95.0': + optional: true + + '@oxlint/binding-linux-arm-gnueabihf@1.95.0': + optional: true + + '@oxlint/binding-linux-arm-musleabihf@1.95.0': + optional: true + + '@oxlint/binding-linux-arm64-gnu@1.95.0': + optional: true + + '@oxlint/binding-linux-arm64-musl@1.95.0': + optional: true + + '@oxlint/binding-linux-ppc64-gnu@1.95.0': + optional: true + + '@oxlint/binding-linux-riscv64-gnu@1.95.0': + optional: true + + '@oxlint/binding-linux-riscv64-musl@1.95.0': + optional: true + + '@oxlint/binding-linux-s390x-gnu@1.95.0': + optional: true + + '@oxlint/binding-linux-x64-gnu@1.95.0': + optional: true + + '@oxlint/binding-linux-x64-musl@1.95.0': + optional: true + + '@oxlint/binding-openharmony-arm64@1.95.0': + optional: true + + '@oxlint/binding-win32-arm64-msvc@1.95.0': + optional: true + + '@oxlint/binding-win32-ia32-msvc@1.95.0': + optional: true + + '@oxlint/binding-win32-x64-msvc@1.95.0': + optional: true + '@rolldown/binding-android-arm-eabi@1.2.12': optional: true @@ -2960,6 +3354,52 @@ snapshots: node-releases@2.0.57: {} + oxfmt@0.80.0: + dependencies: + tinypool: 2.2.0 + optionalDependencies: + '@oxfmt/binding-android-arm-eabi': 0.80.0 + '@oxfmt/binding-android-arm64': 0.80.0 + '@oxfmt/binding-darwin-arm64': 0.80.0 + '@oxfmt/binding-darwin-x64': 0.80.0 + '@oxfmt/binding-freebsd-x64': 0.80.0 + '@oxfmt/binding-linux-arm-gnueabihf': 0.80.0 + '@oxfmt/binding-linux-arm-musleabihf': 0.80.0 + '@oxfmt/binding-linux-arm64-gnu': 0.80.0 + '@oxfmt/binding-linux-arm64-musl': 0.80.0 + '@oxfmt/binding-linux-ppc64-gnu': 0.80.0 + '@oxfmt/binding-linux-riscv64-gnu': 0.80.0 + '@oxfmt/binding-linux-riscv64-musl': 0.80.0 + '@oxfmt/binding-linux-s390x-gnu': 0.80.0 + '@oxfmt/binding-linux-x64-gnu': 0.80.0 + '@oxfmt/binding-linux-x64-musl': 0.80.0 + '@oxfmt/binding-openharmony-arm64': 0.80.0 + '@oxfmt/binding-win32-arm64-msvc': 0.80.0 + '@oxfmt/binding-win32-ia32-msvc': 0.80.0 + '@oxfmt/binding-win32-x64-msvc': 0.80.0 + + oxlint@1.95.0: + optionalDependencies: + '@oxlint/binding-android-arm-eabi': 1.95.0 + '@oxlint/binding-android-arm64': 1.95.0 + '@oxlint/binding-darwin-arm64': 1.95.0 + '@oxlint/binding-darwin-x64': 1.95.0 + '@oxlint/binding-freebsd-x64': 1.95.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.95.0 + '@oxlint/binding-linux-arm-musleabihf': 1.95.0 + '@oxlint/binding-linux-arm64-gnu': 1.95.0 + '@oxlint/binding-linux-arm64-musl': 1.95.0 + '@oxlint/binding-linux-ppc64-gnu': 1.95.0 + '@oxlint/binding-linux-riscv64-gnu': 1.95.0 + '@oxlint/binding-linux-riscv64-musl': 1.95.0 + '@oxlint/binding-linux-s390x-gnu': 1.95.0 + '@oxlint/binding-linux-x64-gnu': 1.95.0 + '@oxlint/binding-linux-x64-musl': 1.95.0 + '@oxlint/binding-openharmony-arm64': 1.95.0 + '@oxlint/binding-win32-arm64-msvc': 1.95.0 + '@oxlint/binding-win32-ia32-msvc': 1.95.0 + '@oxlint/binding-win32-x64-msvc': 1.95.0 + pathe@2.0.3: {} picocolors@1.1.1: {} @@ -3053,6 +3493,8 @@ snapshots: fdir: 6.5.0(picomatch@4.0.7) picomatch: 4.0.7 + tinypool@2.2.0: {} + tr46@0.0.3: {} tslib@2.8.1: {} diff --git a/test/release-contracts.test.mjs b/test/release-contracts.test.mjs index e7b583b..199d992 100644 --- a/test/release-contracts.test.mjs +++ b/test/release-contracts.test.mjs @@ -739,10 +739,10 @@ test("release-please tags the version the publish workflow validates", () => { }); test("release-please output passes the format gate in release PRs and publishes", () => { - // release-please writes `*` bullets and blank-line runs that Prettier rewrites. - const prettierIgnore = readFileSync(join(root, ".prettierignore"), "utf8").split("\n"); - assert.ok(prettierIgnore.includes("packages/tanstack/CHANGELOG.md")); - assert.ok(prettierIgnore.includes(".release-please-manifest.json")); + // release-please writes `*` bullets and blank-line runs that oxfmt rewrites. + const { ignorePatterns } = JSON.parse(readFileSync(join(root, ".oxfmtrc.json"), "utf8")); + assert.ok(ignorePatterns.includes("packages/tanstack/CHANGELOG.md")); + assert.ok(ignorePatterns.includes(".release-please-manifest.json")); }); test("release-please releases trigger the trusted publish workflow", () => {