Remove code complexity that doesn't provide clear value, particularly in type definitions, configuration options, and formatting constraints. This includes eliminating redundant type omissions, using descriptive names for configuration options, and avoiding formatting rules that conflict with user preferences.
Remove code complexity that doesn’t provide clear value, particularly in type definitions, configuration options, and formatting constraints. This includes eliminating redundant type omissions, using descriptive names for configuration options, and avoiding formatting rules that conflict with user preferences.
Examples of unnecessary complexity to avoid:
Omit<ButtonProps, 'href'>
when href
is replaced by the frameworkrouteFileFormatter
instead of just formatter
The goal is to maintain clean, readable code without imposing arbitrary style restrictions or type gymnastics that don’t serve a functional purpose. When in doubt, prefer simpler approaches that give users more control over their code style.
Enter the URL of a public GitHub repository