mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
f87b33464d
- Normalized tests that were ambiguous as to whether they were fixtures or scenarios based - Specified this rule in AGENTS.md - Made the test name report in the CLI clearer
1.5 KiB
1.5 KiB
Input
Command
oxfmt --config .oxfmtrc.json .
File tree
- fixtures/ <CWD>
- .oxfmtrc.json
- root.js
- sibling-a/
- .oxfmtrc.json
- a.js
- sibling-b/
- b.js
- oxfmt.config.ts
- sub/
- .oxfmtrc.json
- deep/
- .oxfmtrc.json
- deep.js
- nested.js
Result
Exit code
0
stdout
Finished in <time> on 10 files using 1 threads.
stderr
File changes
root.js
@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+ if (true) {
+ console.log("hello");
+ }
+}
sibling-a/a.js
@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+ if (true) {
+ console.log("hello");
+ }
+}
sibling-b/b.js
@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+ if (true) {
+ console.log("hello");
+ }
+}
sibling-b/oxfmt.config.ts
@@ -1,3 +1,3 @@
export default {
- singleQuote: true,
+ singleQuote: true,
};
sub/deep/deep.js
@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+ if (true) {
+ console.log("hello");
+ }
+}
sub/nested.js
@@ -1,1 +1,5 @@
-function foo() { if (true) { console.log("hello"); } }
+function foo() {
+ if (true) {
+ console.log("hello");
+ }
+}