Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

correctness.modules

Duplicate imports from the same module

The file imports from the same module path more than once.

#Metadata

Rule ID
ts.correctness.duplicate-import-source
Severity
low
Confidence
0.9
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
file
Tags
correctness, crq-cor-024, modules, public-directory-parity, rules-catalog

#Why it matters

Multiple import declarations for one module increase bundle noise and can diverge over time.

#Remediation

Merge named imports into a single `import` declaration from that module.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.duplicate-import-source.rule.yaml.