The default export is a function or class without a name

tx0/ts:anonymous-default-exportstrictwarningstyle

What it finds

A default export without a name gets whatever name each importer picks, so the same thing appears under different names across a code base, stack traces and dev tools show it as anonymous, and searching for it finds nothing.

Reported are export default function () {}, export default class {} and default exports of arrow functions and unnamed function or class expressions.

From the rule's source, anonymous_default_export.rs.

Example from the rule's tests
export default function () {tx0 reports: this default export has no name  return 1;}
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/ts:anonymous-default-export" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/ts:anonymous-default-export] reason="..."

tx0 explain tx0/ts:anonymous-default-export shows the same in the terminal. Found a false positive? Report it.