volar-service-prettier
Volar plugin for prettier.
Installation
npm install volar-service-prettier
Usage
volar.config.js
module.exports = {
services: [
require('volar-service-prettier').create(
{
languages: ['html', 'css', 'scss', 'typescript', 'javascript'],
html: {
breakContentsFromTags: true,
},
ignoreIdeOptions: true,
},
// provide your prettier options, otherwise auto resolve config file by plugin
() => ({
// ...
})
),
],
};