MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / shouldBlockRender

Function shouldBlockRender

packages/lint/src/shouldBlockRender.ts:5–12  ·  view source on GitHub ↗
(
  strictErrors: boolean,
  strictAll: boolean,
  totalErrors: number,
  totalWarnings: number,
)

Source from the content-addressed store, hash-verified

3 * from the browser entry alongside the rule engine.
4 */
5export function shouldBlockRender(
6 strictErrors: boolean,
7 strictAll: boolean,
8 totalErrors: number,
9 totalWarnings: number,
10): boolean {
11 return (strictErrors && totalErrors > 0) || (strictAll && (totalErrors > 0 || totalWarnings > 0));
12}

Callers 3

browser.test.tsFile · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected