standard / ts-standard

Typescript style guide, linter, and formatter using StandardJS
https://www.npmjs.com/package/ts-standard
MIT License
464 stars 36 forks source link

Missing space before function parentheses. + VS + {Alt+shift+F} #111

Closed noxcionum closed 3 years ago

noxcionum commented 3 years ago

What version of this package are you using? latest

What operating system, Node.js, and npm version? WINServer 2016 npm@6.14.6

What happened? When I use (Alt+shift+F), then i get code without space and ts-standard show me error image

What did you expect to happen?

Are you willing to submit a pull request to fix this bug?

theoludwig commented 3 years ago

ts-standard is not related to VSCode, it is only a npm package but it can be used with vscode-standardjs extension. Maybe you have prettier installed and it auto-formats without the space, we'd like to integrate prettier built-in, it is currently a work in progress, you can see our discussions in #102. Also there is also a open pull request to implement it in standard-engine : https://github.com/standard/standard-engine/issues/230

To fix this issue you could write something like that :

function updateStatusPDFOK () {
  return StatusPDFOK
}

@noxcionum