etn-ccis / blui-react-component-library

Re-usable React components for use in Brightlayer UI applications
BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

lonely `>` on a new line when not necessary #830

Closed huayunh closed 7 months ago

huayunh commented 8 months ago

Describe the desired feature/functionality

Just a small feature request. I would understand if we choose to mark this as wont-fix.

A few generated code snippet shows the closing > on a new line when no props are present, making my prettier head twitch. This is drawer subheader's playground, with its default configuration: image

Suggested implementation details

When no prop is present, the > shall be on the same line as the component name.

surajeaton commented 7 months ago

Please refer to AppBar playground utility function. https://brightlayer-ui-components.github.io/react-dev/components/app-bar/playground