code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

semicolons stripped in React

Open ericandrewscott opened this issue 1 year ago • 2 comments

Is there a setting to avoid stripping semicolons from React code? They're in my examples, but are getting removed.

ericandrewscott avatar Sep 05 '24 11:09 ericandrewscott

Hey @ericandrewscott! Thanks for your interest - we're looking into either allowing specifying prettier config or trying to deduce config from code. Right now we don't expose any means to control example formatting

slees-figma avatar Sep 05 '24 11:09 slees-figma

@slees-figma this would be awesome. You could also enforce eslint configs (as well as prettier).

ericandrewscott avatar Sep 05 '24 15:09 ericandrewscott