Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Not sure how to explain:

Prettier is doing this:

I want it to do this:

Can I change this behavior?

My .prettierrc:

{
  "semi": false,
  "arrowParens": "always",
  "trailingComma": "all",
  "singleQuote": true,
  "printWidth": 180,
  "tabWidth": 2,
  "bracketSameLine": true,
  "vueIndentScriptAndStyle": true,
  "htmlWhitespaceSensitivity": "ignore",
  "endOfLine": "lf",
  "braceStyle": "1tbs"
}
You must be logged in to vote

I think that already depends on the "printWidth" property, play with it by lowering the number of characters

Replies: 1 comment

Comment options

I think that already depends on the "printWidth" property, play with it by lowering the number of characters

You must be logged in to vote
0 replies
Answer selected by fisker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.