Skip to content

Commit

Permalink
Revert workaround (#11481)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Sep 9, 2021
1 parent 4b2ba45 commit 6739679
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions website/playground/Playground.js
Expand Up @@ -28,8 +28,6 @@ const MAX_LENGTH = 8000 - ISSUES_URL.length; // it seems that GitHub limit is 81
const COPY_MESSAGE =
"<!-- The issue body has been saved to the clipboard. Please paste it after this line! 👇 -->\n";

const isProduction = location.host === "prettier.io";
const isPreview = location.host.includes("netlify.app");
const ENABLED_OPTIONS = [
"parser",
"printWidth",
Expand All @@ -48,15 +46,8 @@ const ENABLED_OPTIONS = [
"requirePragma",
"vueIndentScriptAndStyle",
"embeddedLanguageFormatting",
"bracketSameLine",
];
// "jsxBracketSameLine" will be deprecated in 2.4
if (isProduction) {
ENABLED_OPTIONS.push("jsxBracketSameLine");
}
// "bracketSameLine" will be landed in 2.4
if (isPreview) {
ENABLED_OPTIONS.push("bracketSameLine");
}

class Playground extends React.Component {
constructor(props) {
Expand Down

0 comments on commit 6739679

Please sign in to comment.