Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 755 Bytes

prefer-named-export.md

File metadata and controls

17 lines (11 loc) · 755 Bytes

prefer-named-export/prefer-named-export

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.

Rule Details

N/A

Options

N/A

Implementation