How to disable attributes breaking in element tags with Prettier How to disable attributes breaking in element tags with Prettier vue.js vue.js

How to disable attributes breaking in element tags with Prettier


The Prettier option being enforced here is printWidth, which has a default of 80. The markup line in question is 82 characters long plus the length of the preceding tab space, which causes the linter/formatter to break up the line.

You could increase the printWidth to address the issue:

// .eslintrc.jsmodule.exports = {  rules: {    //...    "prettier/prettier": [      "warn",      {        printWidth: 180,  // default = 80      }    ]  }}