correctness.null

Optional value used without fallback

Optional values should be normalized before arithmetic, concatenation, or other direct use.

#Metadata

#Why it matters

Using maybe-undefined values in ordinary expressions bakes uncertainty into the result and can fail or stringify unexpectedly at runtime.

#Remediation

Add `??`, `||`, or an explicit guard so the expression always receives a defined value.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.optional-value-without-fallback.rule.yaml.