r5n-dev / vscode-react-javascript-snippets

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

PropTypes snippets line break #225

Closed edvein-rin closed 2 years ago

edvein-rin commented 2 years ago

Somewhere around a week ago I found that PropTypes snippets started to add a semicolon at the end. I had default config.

It worked like this:

Comp.propTypes = {
   isOpen: ptb -> PropTypes.bool,
}

While became:

Comp.propTypes = {
   isOpen: ptb -> PropTypes.bool;
}

I disabled semicolons in settings and they disappeared, but snippets added line break instead:

Comp.propTypes = {
   isOpen: ptb -> PropTypes.bool
   *I'm here*
}

I tried to enable Prettier in settings but it did no change (however I thought it should fix this as probably it was Prettier who added comma in the first case).

I'm not sure if this behavior is intended, but could you tell me how can I revert initial one and if not possible to not get a line break at least.

ice-chillios commented 2 years ago

@edvein-rin Fixed in v4.3.1