A very common reason is a wrong site baseUrl configuration.\n Advertisement Close Current configured baseUrl = / (default value)\n Advertisement Close We suggest trying baseUrl = \n\n',document.body.prepend(n);var e=document.getElementById("__docusaurus-base-url-issue-banner-suggestion-container"),s=window.location.pathname;e.innerHTML="/"===s.substr(-1)?s:s+"/"} Skip to main contentPrettierstablenextstablePlaygroundDocsBlogDonateSearchPRETTIER FOR ENTERPRISETry It OnlineInstall PrettierLimited edition tshirts are now available to buy! $10 per tshirt goes to maintain the project.What is Prettier?An opinionated code formatterSupports many languagesIntegrates with most editorsHas few options »Why?Your code is formatted on saveNo need to discuss style in code reviewSaves you time and energyAnd more »Works with the Tools You UseJavaScriptJSXFlowTypeScriptJSONHTMLVueAngularEmber / HandlebarsCSSLessSCSSstyled-components 💅styled-jsxGraphQLGraphQL SchemasMarkdownCommonMarkGitHub-Flavored MarkdownMDX v1YAMLCommunity PluginsApexElm (via elm-format)JavaPHPRubyRustTOMLXMLAnd more...Editor SupportEmacsprettier-js prettier.el ApheleiaEspressoespresso-prettierNovaPrettier Prettier⁺Sublime TextJsPrettierVimvim-prettier neoformat ALE coc-prettierVisual StudioJavaScriptPrettierVS Codeprettier-vscodeWebStormBuilt-in supportGot more?Send a PRUsed By People You Rely OnSee othersEstablished in the EcosystemRegularly used by:More than 83% of respondents to State of JS 2021.More than 70% of respondents to State of JS 2020.More than 9.3 million dependent repositories on GitHubCheck Them OutMore than 19.3k dependent packages on npmSee them all
Current configured baseUrl = / (default value)\n Advertisement Close We suggest trying baseUrl = \n\n',document.body.prepend(n);var e=document.getElementById("__docusaurus-base-url-issue-banner-suggestion-container"),s=window.location.pathname;e.innerHTML="/"===s.substr(-1)?s:s+"/"} Skip to main contentPrettierstablenextstablePlaygroundDocsBlogDonateSearchPRETTIER FOR ENTERPRISETry It OnlineInstall PrettierLimited edition tshirts are now available to buy! $10 per tshirt goes to maintain the project.What is Prettier?An opinionated code formatterSupports many languagesIntegrates with most editorsHas few options »Why?Your code is formatted on saveNo need to discuss style in code reviewSaves you time and energyAnd more »Works with the Tools You UseJavaScriptJSXFlowTypeScriptJSONHTMLVueAngularEmber / HandlebarsCSSLessSCSSstyled-components 💅styled-jsxGraphQLGraphQL SchemasMarkdownCommonMarkGitHub-Flavored MarkdownMDX v1YAMLCommunity PluginsApexElm (via elm-format)JavaPHPRubyRustTOMLXMLAnd more...Editor SupportEmacsprettier-js prettier.el ApheleiaEspressoespresso-prettierNovaPrettier Prettier⁺Sublime TextJsPrettierVimvim-prettier neoformat ALE coc-prettierVisual StudioJavaScriptPrettierVS Codeprettier-vscodeWebStormBuilt-in supportGot more?Send a PRUsed By People You Rely OnSee othersEstablished in the EcosystemRegularly used by:More than 83% of respondents to State of JS 2021.More than 70% of respondents to State of JS 2020.More than 9.3 million dependent repositories on GitHubCheck Them OutMore than 19.3k dependent packages on npmSee them all
We suggest trying baseUrl = \n\n',document.body.prepend(n);var e=document.getElementById("__docusaurus-base-url-issue-banner-suggestion-container"),s=window.location.pathname;e.innerHTML="/"===s.substr(-1)?s:s+"/"} Skip to main contentPrettierstablenextstablePlaygroundDocsBlogDonateSearchPRETTIER FOR ENTERPRISETry It OnlineInstall PrettierLimited edition tshirts are now available to buy! $10 per tshirt goes to maintain the project.What is Prettier?An opinionated code formatterSupports many languagesIntegrates with most editorsHas few options »Why?Your code is formatted on saveNo need to discuss style in code reviewSaves you time and energyAnd more »Works with the Tools You UseJavaScriptJSXFlowTypeScriptJSONHTMLVueAngularEmber / HandlebarsCSSLessSCSSstyled-components 💅styled-jsxGraphQLGraphQL SchemasMarkdownCommonMarkGitHub-Flavored MarkdownMDX v1YAMLCommunity PluginsApexElm (via elm-format)JavaPHPRubyRustTOMLXMLAnd more...Editor SupportEmacsprettier-js prettier.el ApheleiaEspressoespresso-prettierNovaPrettier Prettier⁺Sublime TextJsPrettierVimvim-prettier neoformat ALE coc-prettierVisual StudioJavaScriptPrettierVS Codeprettier-vscodeWebStormBuilt-in supportGot more?Send a PRUsed By People You Rely OnSee othersEstablished in the EcosystemRegularly used by:More than 83% of respondents to State of JS 2021.More than 70% of respondents to State of JS 2020.More than 9.3 million dependent repositories on GitHubCheck Them OutMore than 19.3k dependent packages on npmSee them all
JSX
Flow
TypeScript
JSON
Vue
Angular
Ember / Handlebars
Less
SCSS
styled-components 💅
styled-components
styled-jsx
GraphQL Schemas
CommonMark
GitHub-Flavored Markdown
MDX v1
Apex
Elm (via elm-format)
elm-format
Java
PHP
Ruby
Rust
TOML
XML
And more...
prettier-js prettier.el Apheleia
prettier-js
prettier.el
Apheleia
espresso-prettier
Prettier Prettier⁺
Prettier
Prettier⁺
JsPrettier
vim-prettier neoformat ALE coc-prettier
vim-prettier
neoformat
ALE
coc-prettier
JavaScriptPrettier
prettier-vscode
Built-in support
Regularly used by:
More than 9.3 million dependent repositories on GitHub
More than 19.3k dependent packages on npm