Files
oxc-project__oxc/apps/oxfmt/test/cli/editorconfig/2.snap.md
2026-09-02 12:58:48 +09:00

1.6 KiB

Input

Command

oxfmt test.js test.ts nested/deep/test.js nested/deep/test.json

File tree

- fixtures/
  - basic/
    - .editorconfig
    - test.js
  - empty/
    - .editorconfig
    - test.js
  - nested_cwd/
    - .editorconfig
    - sub/
      - test.ts
  - no_root_section/
    - .editorconfig
    - test.js
    - test.ts
  - partial_override/
    - .editorconfig
    - .oxfmtrc.json
    - test.js
  - per_file_override/ <CWD>
    - .editorconfig
    - nested/
      - deep/
        - test.js
        - test.json
    - test.js
    - test.ts
  - quote_type/
    - .editorconfig
    - test.js
  - tab_width_fallback/
    - .editorconfig
    - test.js
  - unset_in_root/
    - .editorconfig
    - test.js
    - test.ts
  - with_oxfmtrc/
    - .editorconfig
    - .oxfmtrc.json
    - test.js

Result

Exit code

0

stdout

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

stderr


File changes

per_file_override/nested/deep/test.js

@@ -1,1 +1,3 @@
-if (true) { console.log("nested js"); }
+if (true) {
+        console.log("nested js");
+}

per_file_override/nested/deep/test.json

@@ -1,1 +1,10 @@
-{"a":1,"b":2,"c":3,"d":4,"e":5,"f":6,"g":7,"h":8}
+{
+	"a": 1,
+	"b": 2,
+	"c": 3,
+	"d": 4,
+	"e": 5,
+	"f": 6,
+	"g": 7,
+	"h": 8
+}

per_file_override/test.js

@@ -1,1 +1,3 @@
-if (true) { console.log("js"); }
+if (true) {
+  console.log("js");
+}

per_file_override/test.ts

@@ -1,1 +1,3 @@
-if (true) { console.log("ts"); }
+if (true) {
+    console.log("ts");
+}