Skip to content

chore: bump dev tooling — ESLint 10, Jest 30.5, commitlint 21 (nx stack 5/5) - #212

Merged
getlarge merged 9 commits into
chore/nx-24from
chore/tooling-deps
Nov 26, 2026
Merged

getlarge merged 9 commits into
chore/nx-24from
chore/tooling-deps

Conversation

@legreffier

@legreffier legreffier Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stack 5/5: dev tooling bumps on top of nx 24, including ESLint 10. TypeScript stays on 6 (Nx 24 peers ^5.8 || ^6).

  • Jest 30.5.2, ts-jest 29.4.15, prettier 3.10 (no reformatting needed).
  • ESLint 10.15, @eslint/js 10, simple-import-sort 14, eslint-plugin-eslint-plugin 7, @eslint/compat, globals.
  • commitlint 21, lint-staged 17, husky 9.1, audit-ci 7.
  • @types/node 22.20, @types/amqplib, ioredis-mock, mqtt, ts-node.

Fixes the bumps required

  • ts-jest 29.4.15 no longer forces node10 resolution. On TS 6 it keeps the bundler-style resolution and customConditions, so it resolved sibling packages to source outside the spec rootDir. Combined with noEmitOnError, ts-jest then emitted nothing ("Unable to process …"). Spec tsconfigs now unset customConditions, which matches Jest's runtime resolution of workspace deps from dist.
  • eslint-plugin-eslint-plugin 7 ships only flat configs, so the eslint-plugin project uses eslintPlugin.configs.recommended instead of FlatCompat.
  • @types/node 22.20 introduced Buffer<ArrayBuffer> variants, which broke FileStorageFs.downloadFile's overload/implementation compatibility (TS2394). The implementation's return type is now annotated, with no API or runtime change.

ESLint 10 (same approach as themoltnet)

  • Removed eslint-plugin-import and eslint-plugin-unused-imports. Both were registered, but no rule from either was configured, so nothing needed replacing.
  • FlatCompat / @eslint/eslintrc replaced with flat-native @nx (flat/typescript, flat/javascript), @eslint/js and typescript-eslint configs. The unused FlatCompat boilerplate is gone from the package configs.
  • The rule policy is preserved. I diffed the effective rules against the ESLint 9 baseline on TS, spec, JS, jest.config and package.json samples, and they're identical except for v10's new recommended rules (no-unassigned-vars, no-useless-assignment, preserve-caught-error) and the no-shadow-restricted-names globalThis default. Those are explicitly kept at their v9 behavior.
  • eslint-plugin-max-params-no-constructor is unmaintained and calls context APIs that v10 removed. It's wrapped with @eslint/compat fixupPluginRules rather than disabled.
  • max-nested-callbacks: v10 fixed an undercount in this rule (v9 popped the stack on every function exit). It surfaced five real violations of the configured max of 3 in the cluster spec, fixed with two module-level kill helpers. Behavior is unchanged.

Audit

0 high, 0 critical. The 27 moderates are upstream: Jest 30's glob/minimatch, where npm's only fix is downgrading to Jest 29 / @nx/jest 21, and @google-cloud/storage 7's transitive uuid, which needs GCS 9 and a file-storage peer range bump (follow-up).

Not included (deliberate)

  • TypeScript 7: Nx 24 peers ^5.8 || ^6.
  • NestJS 12 (@nestjs/*, @nestjs/config 12, @nestjs/schematics 12): needs peer range decisions for every package.
  • promise-breaker 7 (amqp-transport peer), dotenv 18, @types/express 5.

Verification

  • format:check, build, typecheck and lint pass for all projects.
  • test passes for every project except lock and file-storage (CI), with amqp-transport (26) run against a dedicated RabbitMQ.
  • commitlint 21 still enforces the Nx project scopes. Lint has 0 warnings.

legreffier Bot added 2 commits November 26, 2026 10:47
…return type

MoltNet-Diary: 66855b09-a607-49e2-8801-a324b06fdf57
Task-Group: tooling-deps
Task-Family: infra
…nt-staged 17)

MoltNet-Diary: 1e3ac669-6a62-4024-8723-45ceb15f90d3
Task-Group: tooling-deps
Task-Completes: true
@getlarge
getlarge added this pull request to stack #213 November 26, 2026 10:01
legreffier Bot added 2 commits November 26, 2026 11:04
…d-callbacks

MoltNet-Diary: 723e8a21-f6cd-4505-930e-3375ac2800ab
Task-Group: eslint-10
MoltNet-Diary: 3b2e2713-6694-41e4-91b8-afa3d3e3c5dc
Task-Group: eslint-10
Task-Completes: true
@legreffier legreffier Bot changed the title chore: bump dev tooling — Jest 30.5, ESLint plugins, commitlint 21 (nx stack 5/5) chore: bump dev tooling — ESLint 10, Jest 30.5, commitlint 21 (nx stack 5/5) Nov 26, 2026
@nx-cloud

nx-cloud Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit f3dcc15

Command Status Duration Result
nx affected -t lint,typecheck,test,build --para... ✅ Succeeded 1m 18s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-26 12:03:46 UTC

legreffier Bot added 5 commits November 26, 2026 12:39
The read-write nxCloudAccessToken is removed from nx.json. CI reads
NX_CLOUD_ACCESS_TOKEN from repository secrets instead.

MoltNet-Diary: 1cf41d22-f743-4a41-9c22-695e70008693
Task-Group: tooling-deps
Pushes to main run in the `protected` environment, which holds the
read-write NX_CLOUD_ACCESS_TOKEN. All other runs use the read-only
repository secret.

MoltNet-Diary: 023cbf61-6772-4f2d-9315-33a2e8d04d81
Task-Group: tooling-deps
@getlarge
getlarge merged commit 17f185a into main Nov 26, 2026
6 checks passed
@getlarge
getlarge deleted the chore/tooling-deps branch November 26, 2026 12:20
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