Zhihui-Platform / client

Invalid async keyword JS-0376
Anti-pattern
Minor
a year agoa year old
Async function 'createServer' has no 'await' expression
 1import { exec as $, execSync } from "node:child_process";
 2
 3export async function createServer(dir: string, npx: string) { 4  const script = `${npx} slidev`;
 5  return $(script, {
 6    cwd: dir,
Async function 'buildSlides' has no 'await' expression
 7  });
 8}
 9
10export async function buildSlides(dir: string, npx: string) {11  const script = `${npx} slidev build --download`;
12  execSync(script, {
13    cwd: dir,
Async function 'exportSlides' has no 'await' expression
14  });
15}
16
17export async function exportSlides(18  dir: string,
19  options: {
20    dark?: boolean;