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

799 B

Input

Command

oxfmt --disable-nested-config

File tree

- fixtures/
  - .oxfmtrc.json
  - root.js
  - sibling-a/
    - .oxfmtrc.json
    - a.js
  - sibling-b/
    - b.js
    - oxfmt.config.ts
  - sub/ <CWD>
    - .oxfmtrc.json
    - deep/
      - .oxfmtrc.json
      - deep.js
    - nested.js

Result

Exit code

0

stdout

Finished in <time> on 4 files using 1 threads.

stderr


File changes

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