S
S
sawuer2022-03-07 21:24:46
Vue.js
sawuer, 2022-03-07 21:24:46

How to remove extra parentheses in .prettierrc?

I'm using .prettierrc in a Vue project with the following settings:

{
  "semi": false,
  "tabWidth": 2,
  "singleQuote": true,
  "bracketSpacing": true,
  "printWidth": 100,
  "trailingComma": "none",
  "arrowParens": "avoid",
  "bracketSameLine": false
}

And this leads to the following in the template in the component event: And you need:
@updateQuery="val => (query = val)"

@updateQuery="val => query = val"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2022-03-08
@Seasle

There is no such setting in Prettier. You can just ignore this line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question