You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Strict type-safety checks have a sizable migration backlog #3729
Is your feature request related to a problem? Please describe.
Several stricter frontend type-safety checks are not enabled, leaving a substantial measured migration backlog. This is a staged tooling proposal, not evidence that each diagnostic is a bug.
Describe the solution you'd like
Adopt stricter checks in stages, beginning with noUncheckedIndexedAccess or selected type-aware rules, and track/fix the baseline before expanding coverage.
Describe alternatives you've considered, if relevant.
Avoid enabling the full backlog at once. Preserve the existing clean exhaustive-deps rule.
Additional context
Measured candidate diagnostics: 89 for noUncheckedIndexedAccess, 203 for exactOptionalPropertyTypes, and 1,004 for strict-type-checked. Tested commit d3446e0, PyRIT 1.2.0.dev0, offline analysis. Evidence: files/evidence/round4/strict-eslint.json and flag outputs; local paths are not attachments.
As suggested in the proposal, I will scope this first PR strictly to Stage 1: enabling noUncheckedIndexedAccess in frontend/tsconfig.json and fixing the baseline ~89 diagnostics cleanly without expanding into the rest of the backlog.
Scope update: stage 1 is done — #3982 enabled noUncheckedIndexedAccess and cleared its baseline. This issue now tracks the remaining stages: exactOptionalPropertyTypes and the type-aware ESLint rules (strict-type-checked). The 203/1,004 diagnostic counts predate that work and the codebase has moved; re-measure on current main and propose one bounded stage per PR, as before.
Activity
Kaap10 commentedon Nov 5, 2026
I would like to pick this up!
As suggested in the proposal, I will scope this first PR strictly to Stage 1: enabling noUncheckedIndexedAccess in frontend/tsconfig.json and fixing the baseline ~89 diagnostics cleanly without expanding into the rest of the backlog.
MAINT: Adopt noUncheckedIndexedAccess in frontend (#3729) (#3982)
romanlutz commentedon Nov 18, 2026
Scope update: stage 1 is done — #3982 enabled
noUncheckedIndexedAccessand cleared its baseline. This issue now tracks the remaining stages:exactOptionalPropertyTypesand the type-aware ESLint rules (strict-type-checked). The 203/1,004 diagnostic counts predate that work and the codebase has moved; re-measure on current main and propose one bounded stage per PR, as before.Kaap10 commentedon Nov 19, 2026
Thanks for the update Roman Lutz (@romanlutz)!
I re-checked the latest
mainbranch and measured the numbers:noUncheckedIndexedAccess).exactOptionalPropertyTypescurrently gives 293 errors (mostly whereundefinedis passed to optional fields).I'm ready to take on Stage 2 (
exactOptionalPropertyTypes).My plan for this PR is:
"exactOptionalPropertyTypes": trueinfrontend/tsconfig.json.exactOptionalPropertyTypes(leaving ESLint rules for Stage 3).I will start working on this and raise the PR soon!