vscode-react-javascript-snippets icon indicating copy to clipboard operation
vscode-react-javascript-snippets copied to clipboard

It does not put the semicolon at the end of line

Open ShvetsovaOlga opened this issue 2 years ago • 1 comments
trafficstars

It does not put the semicolon at the end of line. For example import React from 'react'

function Badge() { return (

</div>

) }

Can I solve the problem?

ShvetsovaOlga avatar Feb 07 '23 10:02 ShvetsovaOlga

This can be solved by adding a new option, which, if enabled, adds the semicolons. Similar to the existing importReactOnTop option which is also used to customize the snippets.

It seems that prettierEnabled might also be useful here but I believe adding the option is better to make it possible in projects that do not use prettier as well.

hb20007 avatar Apr 19 '23 14:04 hb20007