diff --git a/packages/playground/src/index.ts b/packages/playground/src/index.ts index e60311762b17..51deaa8f951a 100644 --- a/packages/playground/src/index.ts +++ b/packages/playground/src/index.ts @@ -386,8 +386,8 @@ export const setupPlayground = ( } else { sidebarTabs.style.display = "none" sidebarContent.style.display = "none" - settingsContent.style.display = "block"; - (document.querySelector(".playground-sidebar label") as any).focus() + settingsContent.style.display = "block" + ;(document.querySelector(".playground-sidebar label") as any).focus() } settingsToggle.parentElement!.classList.toggle("open") } @@ -462,8 +462,8 @@ export const setupPlayground = ( } // Ensure that the editor is full-width when the screen resizes - window.addEventListener('resize', () => { - sandbox.editor.layout(); + window.addEventListener("resize", () => { + sandbox.editor.layout() }) const ui = createUI() diff --git a/packages/sandbox/src/compilerOptions.ts b/packages/sandbox/src/compilerOptions.ts index cdd0527b79e5..166ded63539e 100644 --- a/packages/sandbox/src/compilerOptions.ts +++ b/packages/sandbox/src/compilerOptions.ts @@ -40,6 +40,8 @@ export function getDefaultSandboxCompilerOptions(config: PlaygroundConfig, monac allowJs: config.useJavaScript, declaration: true, + importHelpers: false, + experimentalDecorators: true, emitDecoratorMetadata: true, moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs, diff --git a/packages/tsconfig-reference/scripts/tsconfigRules.ts b/packages/tsconfig-reference/scripts/tsconfigRules.ts index 521c9c21fc70..ee6887881d7b 100644 --- a/packages/tsconfig-reference/scripts/tsconfigRules.ts +++ b/packages/tsconfig-reference/scripts/tsconfigRules.ts @@ -117,7 +117,6 @@ export const defaultsForOptions = { inlineSourceMap: "false", inlineSources: "false", isolatedModules: "false", - jsx: '`"react"`', jsxFactory: "`React.createElement`", keyofStringsOnly: "false", listEmittedFiles: "false", diff --git a/packages/typescriptlang-org/tsconfig.json b/packages/typescriptlang-org/tsconfig.json index 636824fe9e9e..722b9fe0b1a6 100644 --- a/packages/typescriptlang-org/tsconfig.json +++ b/packages/typescriptlang-org/tsconfig.json @@ -7,6 +7,7 @@ "strict": true, "esModuleInterop": true, "noEmit": true, + "jsx": "react", "skipLibCheck": true, "noImplicitAny": false, "resolveJsonModule": true