This package has been deprecated

Author message:

WARNING: This project has been renamed to volar-service-prettier. Install using volar-service-prettier instead.

@volar-plugins/prettier
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @volar-plugins/prettier

Weekly Downloads

1,503

Version

2.0.0

License

MIT

Unpacked Size

5.86 kB

Total Files

4

Last publish

Collaborators

  • johnsoncodehk
  • patarapolw