Files
oxc-project__oxc/apps/oxfmt/test/cli/nested_config/3.snap.md
2026-04-17 01:20:46 +00:00

1.5 KiB

Input

Command

oxfmt --disable-nested-config

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");
+    }
+}