This rule enforces the use of named exports instead of default exports. It checks for export statements that use the export default syntax with an identifier as the default export, and suggests exporting the variable directly with a named export instead.
- ⭐️ This rule is included in
plugin:prefer-named-export/recommended
preset.- ✒️ The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
N/A
N/A