Prettier-vscode: prettier.arrowParens setting type

Created on 5 Mar 2018  ยท  4Comments  ยท  Source: prettier/prettier-vscode

With "prettier.arrowParens": "always", i receive following error

โ— Validation Error:

  Option "arrowParens" must be of type:
    boolean
  but instead received:
    string

  Example:
  {
    "arrowParens": false
  }

With "prettier.arrowParens": true, in setting I receive:

Invalid `"arrowParens"` value. Expected "always" or "avoid", but received `true`.
locked

Most helpful comment

Check to make sure you don't have two versions of a prettier extension installed. E.g. I had both "Prettier" and "Prettier Now" installed; the latter had the old boolean value in my config file.

All 4 comments

Certainly same cause as #313

@CiGit #313 solution is to update prettier to 1.9. I installed [email protected] but got the same error: Invalid "arrowParens" value. Expected "always" or "avoid", but received true.

Check to make sure you don't have two versions of a prettier extension installed. E.g. I had both "Prettier" and "Prettier Now" installed; the latter had the old boolean value in my config file.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings