Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 833 Bytes

no-default-export.md

File metadata and controls

24 lines (16 loc) · 833 Bytes

Convert unnamed default exports to named default exports based on the file name (th-rules/no-default-export)

💼 This rule is enabled in the following configs: ✅ recommended, recommended-react, recommended-typescript.

🔧 This rule is automatically fixable by the --fix CLI option.

Description

Converts unnamed default exports to named default exports based on the file name. This rule helps maintain consistency in export names and facilitates easier identification of components or modules.

Rule Details

This rule targets unnamed default exports and automatically generates a named export based on the file name.

Usage

{
  "rules": {
    "no-default-export": "error"
  }
}