From 299c7cfe54cb184e0d0c18b00a154c953b433ebf Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 4 Aug 2021 23:17:32 -0400 Subject: feat(fmt): format top-level JSX elements/fragments with parens when multi-line (#11582) --- cli/tests/046_jsx_test.tsx | 4 +--- cli/tests/047_jsx_test.jsx | 4 +--- cli/tests/module_graph/https_deno.land-x-transpile.tsx | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/046_jsx_test.tsx b/cli/tests/046_jsx_test.tsx index 857d24d36..a96e90baf 100644 --- a/cli/tests/046_jsx_test.tsx +++ b/cli/tests/046_jsx_test.tsx @@ -8,7 +8,5 @@ const React = { return { factory, props, children }; }, }; -const View = () => ( -
land
-); +const View = () =>
land
; console.log(); diff --git a/cli/tests/047_jsx_test.jsx b/cli/tests/047_jsx_test.jsx index 61bd7e36c..4c2314072 100644 --- a/cli/tests/047_jsx_test.jsx +++ b/cli/tests/047_jsx_test.jsx @@ -3,7 +3,5 @@ const React = { return { factory, props, children }; }, }; -const View = () => ( -
land
-); +const View = () =>
land
; console.log(); diff --git a/cli/tests/module_graph/https_deno.land-x-transpile.tsx b/cli/tests/module_graph/https_deno.land-x-transpile.tsx index 23167d2ff..02955bad8 100644 --- a/cli/tests/module_graph/https_deno.land-x-transpile.tsx +++ b/cli/tests/module_graph/https_deno.land-x-transpile.tsx @@ -1,5 +1,5 @@ export default class A { render() { - return (
Hello world!
); + return
Hello world!
; } } -- cgit v1.2.3