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.
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.
This rule targets unnamed default exports and automatically generates a named export based on the file name.
{
"rules": {
"no-default-export": "error"
}
}