export async function styleCheck()

in packages/web-scripts/src/Tasks/LintTask.ts [86:98]


export async function styleCheck(): Promise<string> {
  const cmd = 'npx';
  const args = ['--no-install', 'prettier'];

  const config = getPrettierConfig();
  if (config) {
    args.push('--config', config);
  }

  args.push('--check', `${CONSUMING_ROOT}/**/src/**/*.{ts,tsx,js,jsx}`);
  const stdout = await spawn(cmd, args, { stdio: 'inherit' });
  return (stdout || '').toString();
}