From 32c8986e2fa18bb02bdcd6162038f9c9a03c5cfd Mon Sep 17 00:00:00 2001 From: Naoki Ikeguchi Date: Mon, 3 Mar 2025 15:45:16 +0900 Subject: [PATCH] fix(cli): support migrating from ESLint config which returns a Promise --- crates/biome_cli/src/execute/migrate/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/biome_cli/src/execute/migrate/node.rs b/crates/biome_cli/src/execute/migrate/node.rs index 0994a200a017..375c1dd77ded 100644 --- a/crates/biome_cli/src/execute/migrate/node.rs +++ b/crates/biome_cli/src/execute/migrate/node.rs @@ -9,7 +9,7 @@ pub(crate) fn load_config(specifier: &str) -> Result .env("NODE_NO_WARNINGS", "1") .arg("--eval") .arg(format!( - "{UNCYCLE_FUNCTION} import('{specifier}').then((c) => console.log(JSON.stringify(uncycle(c.default))))" + "{UNCYCLE_FUNCTION} import('{specifier}').then((c) => c.default).then((c) => console.log(JSON.stringify(uncycle(c))))" )) .output(); match content_output {