Skip to content

Alias

Toggle: enabledChecks.alias ยท Fix: autofix.alias

Reports compatibility aliases where the original identifier can be used directly. Supported fixes update references and imports while considering collisions and public contracts. Ambiguous cases remain findings.

Use it to retire temporary internal indirection. Review exported names and compatibility guarantees before enabling export-affecting cleanup.

Before โ€” a private constant only forwards another local value:

const displayName = user.name;
return displayName;

After โ€” use the value directly where the alias adds no useful meaning:

return user.name;