@volar-plugins/prettier
Volar plugin for prettier.
Usage
package.json
{
"devDependencies": {
"@volar-plugins/prettier": "latest"
}
}
volar.config.js
module.exports = {
plugins: [
require('@volar-plugins/prettier').default(
{
languages: ['html', 'css', 'scss', 'typescript', 'javascript'],
html: {
breakContentsFromTags: true,
},
ignoreIdeOptions: true,
},
// provide your prettier options, otherwise auto resolve config file by plugin
() => ({
// ...
})
),
],
};