Repository navigation
chore(deps): adopt typescript-eslint 8.74 - #5165
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review Automated re-review request for |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why
typescript-eslint 8.72.2 was pinned because 8.73 adds
no-unsafe-class-instance-assignment to strict-type-checked (AI-826) and extends
no-deprecated to deprecated parameters and options. Staying behind skips rule
fixes and leaves the lint stack stale.
What
- typescript-eslint and every @typescript-eslint/* to 8.74.0 (root overrides,
package ranges, bun.lock).
- no-unsafe-class-instance-assignment: @kubernetes/client-node models in
packages/temporal are built through a typed model() helper (nested models
too); temporal proto responses use create(); cdk8s EnvValue/Construct,
IntentsBitField, astro logger and test tables build or type real instances.
job-manifest.ts split (job-grants.ts) to stay under max-lines.
- no-deprecated: zod {message} -> {error}; echarts containLabel ->
outerBoundsMode/outerBoundsContain and series typed via satisfies; Playwright
ignored isVisible timeout -> waitFor; cheerio xmlMode -> xml; discord.js
ephemeral -> flags: MessageFlags.Ephemeral.
- consistent-type-imports autofix (better-skill-capped); explicit boolean checks
in root-scripts.
- One justified suppression at discord-plays-core logger.ts: false positive on
winston transports, typescript-eslint#13234 (tracked as AI-947); no
code-only form passes the rule.
Verification
- bunx turbo run lint --force --continue: clean except local-environment
failures (hkctl SourceKit, toolkit#build react-devtools-core); media (8 GiB
heap) and scout backend linted directly, clean.
- bunx turbo run test:extended --filter='...[origin/main]' --continue: 72 tasks
pass; only toolkit#build fails (local env).
- temporal 443, media 1256, scout backend discord 290 and other touched
package tests pass. Pre-commit run with --no-verify only because
toolkit#build cannot resolve react-devtools-core locally; CI is authoritative.
- Live/deployment checks not run (lint-only change).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Why quality-ratchet rejected the typescript-eslint#13234 suppression in discord-plays-core logger.ts as an unallowed file. What Add logger.ts (1) to .quality-baseline.json; AI-947 now says to remove it from both check-suppressions and quality-ratchet. Verification - bun run quality-ratchet: passed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
307762d to
5285909
Compare
Why: main added a zod {message} refinement that 8.74 no-deprecated rejects.
What: use {error}. Verification: scout data lint passes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Why: new main code tripped no-deprecated and no-unsafe-class-instance-assignment. What: zod error param (artifacts, scout backend hall); k8s models built with model() in four temporal tests. Verification: eslint clean for artifacts, temporal (full lint script), scout backend progression; 24 temporal tests pass. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Why
typescript-eslint was held at 8.72.2 because 8.73 adds
no-unsafe-class-instance-assignmentto strict-type-checked (AI-826) and 8.73 extendsno-deprecatedto deprecated parameters/options. This adopts 8.74.0 and fixes the code the rules reject; no rule is disabled or downgraded.What
@typescript-eslint/*to 8.74.0 (root overrides, package ranges,bun.lock).no-unsafe-class-instance-assignment: k8s models inpackages/temporalare built through a typedmodel()helper (src/lib/k8s-model.ts), nested models included; other workspaces construct or type real instances.no-deprecated: zod{ message }to{ error }, echartscontainLabel, Playwright ignoredtimeout, cheerioxmlMode, discord.jsephemeraltoflags.packages/discord-plays-core/src/logger.ts: upstream false positive typescript-eslint#13234 (winston re-exportswinston-transportvia animport *alias; no code-only form passes). Allowlisted incheck-suppressions, tracked as AI-947.Demo
Sites fixed (approximate, by rule and workspace):
message)Before / after (
packages/temporalConfigMap):Verification
bunx turbo run lint --force --continue: clean except local-env failures (hkctl SourceKit,toolkit#buildreact-devtools-core); media (8 GiB heap) and scout backend linted directly, clean.disallowAutomaticSingleRunInferencekept.bunx turbo run test:extended --filter='...[origin/main]' --continue: 72 tasks pass; onlytoolkit#buildfails (local env).bun run knipprinted no findings.🤖 Generated with Claude Code