diff --git a/CHANGELOG.md b/CHANGELOG.md index ab2b5fb100..5054d24bfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### 0.25.0 +- Add [prettier/plugin-pug](https://github.com/prettier/plugin-pug) as default formatter for `pug`. #527. - 🙌 Detect tags from @nuxt/components. Thanks to contribution from [pooya parsa](https://github.com/pi0). #1921. - 🙌 Fix VTI crash by passing correct PID to language server. Thanks to contribution from [Daniil Yastremskiy](@TheBeastOfCaerbannog). #1699 and #1805. - 🙌 Fix template interpolation hover info of v-for readonly array item. Thanks to contribution from [@yoyo930021](https://github.com/yoyo930021). #1788. diff --git a/docs/formatting.md b/docs/formatting.md index 60dc1bc634..d094b865a8 100644 --- a/docs/formatting.md +++ b/docs/formatting.md @@ -10,7 +10,7 @@ Vetur has support for formatting embedded `html/css/scss/less/postcss/stylus/js/ These formatters are available: -- [`prettier`](https://github.com/prettier/prettier): For css/scss/less/js/ts. +- [`prettier`](https://github.com/prettier/prettier): For pug/css/scss/less/js/ts. - [`prettier-eslint`](https://github.com/prettier/prettier-eslint): For js. Run `prettier` and `eslint --fix`. - [`prettyhtml`](https://github.com/Prettyhtml/prettyhtml): For html. - [`stylus-supremacy`](https://github.com/ThisIsManta/stylus-supremacy): For stylus. @@ -27,6 +27,7 @@ Current default: ```json { "vetur.format.defaultFormatter.html": "prettyhtml", + "vetur.format.defaultFormatter.pug": "prettier", "vetur.format.defaultFormatter.css": "prettier", "vetur.format.defaultFormatter.postcss": "prettier", "vetur.format.defaultFormatter.scss": "prettier", diff --git a/package.json b/package.json index 2c8f70d848..91fdf77cd5 100644 --- a/package.json +++ b/package.json @@ -285,6 +285,19 @@ ], "description": "Default formatter for