2.0.0 • Published 2 years ago

@volar-plugins/pretty-ts-errors v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@volar-plugins/pretty-ts-errors

Volar plugin for pretty-ts-errors.

Usage

package.json

{
  "devDependencies": {
    "@volar-plugins/pretty-ts-errors": "latest",
    "prettier": "latest"
  }
}

volar.config.js

module.exports = {
	plugins: [
		require('@volar-plugins/pretty-ts-errors').default(
			type => require('prettier').format(type, {
				parser: 'typescript',
				printWidth: 60,
				singleAttributePerLine: false,
				arrowParens: 'avoid',
			});
		),
	],
};