Maintain consistent formatting and alignment throughout the codebase to improve readability and maintainability. This includes proper indentation for multi-line constructs, consistent spacing in documentation, and clear structural organization.
Key formatting practices:
@default
if
statements over else if
chains when conditions are mutually exclusive)Example of proper multi-line type formatting:
export type Styles = PaddingStyles &
MarginStyles &
FlexStyles &
DimensionStyles &
PositionStyles &
WrapTextStyles;
Example of proper JSDoc formatting:
/**
* Set this property to `hidden` to hide content overflowing the box.
*
* @default 'visible'
*/
This approach ensures code is visually consistent, easier to scan, and more maintainable across the entire codebase.
Enter the URL of a public GitHub repository