Skip to content

[08/44] Enable TS strict mode in sdk-uve #35941

Description

@nicobytes

Description

Part of the strict-mode rollout epic #35932. Enable TypeScript strict mode for the sdk-uve project.

  • Dependency layer: 1 (0 = leaf library, 10 = top-level app)
  • Internal dependents: 7 project(s), 5 of them already strict
  • Rollout order: 8 / 44

Approach corrected. The original criteria referenced typescript-strict-plugin, npx tsc-strict, and // @ts-strict-ignore. That approach was dropped — the bootstrap issue #35933 closed without the plugin ever landing. The established pattern is per-project tsconfig.json flags, set by the first merged rollout PR #36879 (dotcms-models). See epic #35932.

This project already satisfies the criteria. See the verification comment below.

Acceptance Criteria

  • The six strict flags are present in libs/sdk/uve/tsconfig.json (not tsconfig.base.json, which stays at "strict": false).
  • pnpm exec tsc -p libs/sdk/uve/tsconfig.lib.json --noEmit exits 0.
  • pnpm exec tsc -p libs/sdk/uve/tsconfig.spec.json --noEmit exits 0.
  • No any, @ts-ignore, or @ts-expect-error propping up the result.
  • nx run sdk-uve:build / :lint / :test pass.
  • The flags are actually enforced by CI — not merely declared.

Priority

Medium

Additional Context

One project in the bottom-up rollout tracked by epic #35932. Full specification: specs/35941-sdk-uve-strict-mode/spec.md.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions