Naming default exports improves codebase searchability by ensuring consistent identifier use for a module’s default export, both where it’s declared and where it’s imported.
Anonymous default exports make it harder to search for all usages of a module’s primary export, since consumers can choose any name when importing.
This rule reports anonymous functions and classes that are default exported.
If your project does not rely on consistent naming for default exports, or if you prefer the flexibility of allowing anonymous default exports, you can disable this rule.
Some codebases may have established patterns where anonymous default exports are acceptable.