quality.readability

Magic numbers or magic strings

Non-trivial literals in logic should be named to explain their meaning.

#Metadata

#Why it matters

Bare literals hide domain meaning and make future changes riskier because intent is not captured in code.

#Remediation

Extract the literal into a descriptive constant or enum so the intent is explicit.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.quality.magic-numbers-or-strings.rule.yaml.