r5n-dev / vscode-react-javascript-snippets

Extension for React/Javascript snippets with search supporting ES7+ and babel features
MIT License
1.7k stars 434 forks source link

It does not put the semicolon at the end of line #284

Open ShvetsovaOlga opened 1 year ago

ShvetsovaOlga commented 1 year ago

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

function Badge() { return (

) }

Can I solve the problem?

hb20007 commented 1 year ago

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.