vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

"prettier.tslintIntegration": true -> support #1315

Open ScreamZ opened 5 years ago

ScreamZ commented 5 years ago

Hello,

I'm struggling hard making this works… Currently in my node based project I used

{
  "prettier.tslintIntegration": true,
  "prettier.printWidth": 120
}

And the prettier extension automatically reads from my tslint.json rules.

I'm not able to make this works with vetur, the plugin is removing trailing-slashes all the time…

Any idea how to deal with that ? Support ?

I can write documentation PR when I achieve this goal.

Best regards

yoyo930021 commented 5 years ago

you can use .prettierrc file at project root. or

"vetur.format.defaultFormatterOptions": {
  "prettier": {
    // Prettier option here
    "semi": false
  }
}