remimarsal/prettier-now-vscode

Validation Error with arrowParens

n1ghtmare opened this issue · 1 comments

Hi guys,

There seems to be a config clash with Prettier and more specifically to the config setting arrowParens. Here is the output from vscode upon formatting:

● Validation Error:

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

  Example:
  {
    "arrowParens": false
  }

The fix is simple, just add prettier.arrowParens: false (or true of course) in your config.

I'm seeing this too. My settings JSON does not have an arrowParens setting, and the error message doesn't tell me how to fix it.

Adding "prettier.arrowParens": true, to my settings JSON works to silence the error, BUT it creates a validation warning:

Incorrect type. Expected "string".
Value is not accepted. Valid values: "avoid", "always".

image

The warning doesn't seem to break anything, however.