How make bracketSameLine: true work with prettier in intellij Ultimate?

82 Views Asked by At

Prettier does not leave brackets on same line. This is annoying for me and people who check my code as it is poor readability. Example below :

enter image description here enter image description here

I use Intellij Ultimate version 2023.2.2. I work on an Angular project.

Settings

enter image description here

.prettierrc.json

{
  "htmlWhitespaceSensitivity": "ignore",
  "tabWidth": 2,
  "useTabs": false,
  "singleQuote": true,
  "semi": true,
  "bracketSpacing": true,
  "arrowParens": "avoid",
  "trailingComma": "es5",
  "bracketSameLine": true,
  "printWidth": 80
}
0

There are 0 best solutions below