Make prettier less uglier - prevent split tags
I agree your opinion. This Linter rule will help you.
eslint-plugin-vue/html-closing-bracket-newline.md at master · vuejs/eslint-plugin-vue
I setting up rules in .eslintrc.js
below.
"vue/html-closing-bracket-newline": [2, { multiline: "never" }]
and I setting up .vscode/setting.json
below
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[vue]": {
"editor.formatOnSave": false
}
}
Try to set htmlWhitespaceSensitivity
property to ignore
in your prettier config.