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

Function loadESLint

packages/plugin-eslint/src/lib/setup.ts:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12async function loadESLint() {
13 const eslint = await import('eslint');
14 // loadESLint added to public API in v9, selects ESLint or LegacyESLint based on environment
15 if ('loadESLint' in eslint && typeof eslint.loadESLint === 'function') {
16 return (await eslint.loadESLint()) as typeof ESLint;
17 }
18 return ESLint;
19}

Callers 1

setupESLintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected