包详细信息

volar-service-prettier

volarjs1.1mMIT0.0.64

Integrate Prettier into Volar

volar-service

自述文件

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
            () => ({
                // ...
            })
        ),
    ],
};

License

MIT © Pacharapol Withayasakpunt