From b7a1fe46a699a272c0938fbac707337ccb31e642 Mon Sep 17 00:00:00 2001 From: kaykdm Date: Fri, 20 Sep 2024 21:38:56 +0900 Subject: [PATCH] Run cargo insta review --- .../top_level_all_down_level_not_all.snap | 21 ++++++++++++++++++- ..._level_all_true_group_level_all_false.snap | 21 ++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/crates/biome_cli/tests/snapshots/main_commands_check/top_level_all_down_level_not_all.snap b/crates/biome_cli/tests/snapshots/main_commands_check/top_level_all_down_level_not_all.snap index 8319f49f84cf..eb7ace276198 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_check/top_level_all_down_level_not_all.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_check/top_level_all_down_level_not_all.snap @@ -40,6 +40,25 @@ check ━━━━━━━━━━━━━━━━━━━━━━━━ # Emitted Messages +```block +fix.js:1:1 lint/nursery/useExplicitFunctionReturnType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + + ! Missing return type on function. + + > 1 │ + │ + > 2 │ function f() {arguments;} + │ ^^^^^^^^^^ + 3 │ const FOO = "FOO"; + 4 │ var x, y; + + i Declaring the return type makes the code self-documenting and can speed up TypeScript type checking. + + i Add a return type annotation. + + +``` + ```block fix.js:2:14 lint/correctness/noUnusedVariables ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -151,5 +170,5 @@ fix.js format ━━━━━━━━━━━━━━━━━━━━━━ ```block Checked 1 file in