Vetur: Vetur suddenly ignoring prettier.arrowParens

Created on 6 Feb 2018  路  4Comments  路  Source: vuejs/vetur

  • [ x] I have searched through existing issues
  • [ x] I have read through docs
  • [ x] I have read FAQ

Info

  • Platform: Linux
  • Vetur version: 0.11.7
  • VS Code version: 1.19.3

Problem

I haven't changed anything, but suddenly the "prettier.arrowParens" setting is ignored within *.vue files, it will always remove the parentheses even though the setting is set to "always". It was working before. Nothing changed. Every other setting seems to be working, f.e. "prettier.semi". I've reinstalled Vetur and Prettier ...without success.

Any idea?

Regards

Most helpful comment

I think this problem is caused by the newest update of prettier.

vue is now disabled by default. Opt-in by removing vue from disableLanguages setting

I added this to my setting.json in vscode and reload the window, then it solved
"prettier.disableLanguages": []

All 4 comments

I think this problem is caused by the newest update of prettier.

vue is now disabled by default. Opt-in by removing vue from disableLanguages setting

I added this to my setting.json in vscode and reload the window, then it solved
"prettier.disableLanguages": []

Answer by @IwYvI helped!

@IwYvI I tried this, but I did not succeed.

Was this page helpful?
0 / 5 - 0 ratings