Skip to content

Commit 051c444

Browse files
committed
fix(oxfmt): Fix up the half-finished lines (#13840)
Just tidied up first before moving on to another task.
1 parent 59db021 commit 051c444

File tree

12 files changed

+13
-16
lines changed

12 files changed

+13
-16
lines changed

apps/oxfmt/src/service.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,8 @@ impl FormatService {
7272
return;
7373
}
7474

75-
let options = FormatOptions {
76-
// semicolons: "always".parse().unwrap(),
77-
semicolons: "as-needed".parse().unwrap(),
78-
..FormatOptions::default()
79-
};
75+
// TODO: Read and apply config
76+
let options = FormatOptions::default();
8077
let code = Formatter::new(&allocator, options).build(&ret.program);
8178

8279
let elapsed = start_time.elapsed();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = "cjs"
1+
module.exports = "cjs";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = { typed: "cts" as string }
1+
module.exports = { typed: "cts" as string };
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const es6 = "ecmascript6"
1+
const es6 = "ecmascript6";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const standard = "js"
1+
const standard = "js";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const jsModule = "javascript module"
1+
const jsModule = "javascript module";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const Component = () => <div>JSX</div>
1+
const Component = () => <div>JSX</div>;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const module = "mjs"
1+
export const module = "mjs";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const typedModule: string = "mts"
1+
export const typedModule: string = "mts";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const standard = "pac"
1+
const standard = "pac";

0 commit comments

Comments
 (0)