vmware-archive / clarity

Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
http://clarity.design
MIT License
6.43k stars 762 forks source link

chore(core): storybook code format #6661

Closed coryrylan closed 2 years ago

coryrylan commented 2 years ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

On certain storybook stories where the code snippet is a single line the story formatter will throw an exception.

What is the new behavior?

This will prevent the exception and check if its a single or multi line code snippet before attempting to format or remove the wrapper function.

Does this PR introduce a breaking change?

Other information