diff --git a/apps/oxfmt/src/core/config/mod.rs b/apps/oxfmt/src/core/config/mod.rs index d415f283ec..361523fb97 100644 --- a/apps/oxfmt/src/core/config/mod.rs +++ b/apps/oxfmt/src/core/config/mod.rs @@ -120,7 +120,7 @@ impl ConfigLoader { fn load_in_dir(&self, dir: &Path) -> Result, String> { let Some(config_file) = self .discovery - .find_unique_config_by_readdir(dir, false) + .find_unique_config_by_readdir(dir) .map_err(|e| Into::::into(e).to_string())? else { return Ok(None); diff --git a/apps/oxfmt/test/cli/config_symlink/0.snap.md b/apps/oxfmt/test/cli/config_symlink/0.snap.md new file mode 100644 index 0000000000..8afff98ea7 --- /dev/null +++ b/apps/oxfmt/test/cli/config_symlink/0.snap.md @@ -0,0 +1,48 @@ +# Input + +## Command +``` +oxfmt . +``` + +## File tree +``` +- fixtures/ + - root.js + - shared/ + - root.json + - sub.json + - sub/ + - sub.js +``` + +# Result + +## Exit code +0 + +## stdout +``` +Finished in