homarr-labs / homarr

async function should have await expression JS-0116
Bug risk
Minor
4 occurrences in this check
Found async function without any await expressions
74          return content;
75        },
76      },
77      async (answers) => {78        /**79         * Install deps and format everything80         */81        if ("name" in answers && typeof answers.name === "string") {82          // execSync("pnpm dlx sherif@latest --fix", {83          //   stdio: "inherit",84          // });85          execSync("pnpm i", { stdio: "inherit" });86          execSync(87            `pnpm prettier --write packages/${answers.name}/** --list-different`,88          );89          return "Package scaffolded";90        }91        return "Package not scaffolded";92      },93    ],
94  });
95}
Found async function without any await expressions
4  return bcrypt.genSalt(10);
5};
6
7export const hashPassword = async (password: string, salt: string) => {8  return bcrypt.hash(password, salt);9};
Found async function without any await expressions
1import bcrypt from "bcrypt";
2
3export const createSalt = async () => {4  return bcrypt.genSalt(10);5};6
7export const hashPassword = async (password: string, salt: string) => {
8  return bcrypt.hash(password, salt);
Found async function without any await expressions
2
3import { revalidatePath } from "next/cache";
4
5export async function revalidatePathAction(path: string) {6  return new Promise((resolve) => resolve(revalidatePath(path, "page")));7}