summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-08-04 23:17:32 -0400
committerGitHub <noreply@github.com>2021-08-04 23:17:32 -0400
commit299c7cfe54cb184e0d0c18b00a154c953b433ebf (patch)
tree2365d59cae5e8f6be54689cf7aee1514ca7e7825 /cli
parentfcaf8cd8e37459658a6c06d7e16b3adc9436a135 (diff)
feat(fmt): format top-level JSX elements/fragments with parens when multi-line (#11582)
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml2
-rw-r--r--cli/tests/046_jsx_test.tsx4
-rw-r--r--cli/tests/047_jsx_test.jsx4
-rw-r--r--cli/tests/module_graph/https_deno.land-x-transpile.tsx2
4 files changed, 4 insertions, 8 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index 6efe071a7..c74b2980e 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -55,7 +55,7 @@ data-url = "0.1.0"
dissimilar = "1.0.2"
dprint-plugin-json = "0.12.1"
dprint-plugin-markdown = "0.9.2"
-dprint-plugin-typescript = "0.49.0"
+dprint-plugin-typescript = "0.50.0"
encoding_rs = "0.8.28"
env_logger = "0.8.4"
fancy-regex = "0.5.0"
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 = () => (
- <div class="deno">land</div>
-);
+const View = () => <div class="deno">land</div>;
console.log(<View />);
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 = () => (
- <div class="deno">land</div>
-);
+const View = () => <div class="deno">land</div>;
console.log(<View />);
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 (<div>Hello world!</div>);
+ return <div>Hello world!</div>;
}
}