MCPcopy Create free account
hub / github.com/code-pushup/cli / detectEslintConfig

Function detectEslintConfig

packages/plugin-eslint/src/lib/binding.ts:148–153  ·  view source on GitHub ↗
(
  targetDir: string,
)

Source from the content-addressed store, hash-verified

146}
147
148async function detectEslintConfig(
149 targetDir: string,
150): Promise<string | undefined> {
151 const files = await readdir(targetDir, { encoding: 'utf8' });
152 return files.find(file => ESLINT_CONFIG_PATTERN.test(file));
153}

Callers 2

binding.tsFile · 0.85
isRecommendedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected