Skip to content

gspot/no-alias-exports

Finds an exported constant that only renames another value.

The all config turns it on.

Two names for one value split every search and every reader in two.

Export the source value under its own name, or import the source where the alias was used.

The declaration export const a = b; reports alias. Remove a and update its consumers to use b from its owner. A declaration that owns a value, such as export const a = 1;, does not report this finding.

This rule has no options.