Home / Function/ runESLint() — react Function Reference

runESLint() — react Function Reference

Architecture documentation for the runESLint() function in index.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b76b637c_f50a_fc66_2eea_8b9c9b316858["runESLint()"]
  b1f597ae_f3fe_afb3_1db0_0cfe6b8817c9["index.js"]
  b76b637c_f50a_fc66_2eea_8b9c9b316858 -->|defined in| b1f597ae_f3fe_afb3_1db0_0cfe6b8817c9
  e97458e0_015f_b4f9_7c67_9b36db9fa705["runESLintOnFilesWithOptions()"]
  b76b637c_f50a_fc66_2eea_8b9c9b316858 -->|calls| e97458e0_015f_b4f9_7c67_9b36db9fa705
  style b76b637c_f50a_fc66_2eea_8b9c9b316858 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/eslint/index.js lines 75–92

async function runESLint({onlyChanged, paths, ...options}) {
  if (typeof onlyChanged !== 'boolean') {
    throw new Error('Pass options.onlyChanged as a boolean.');
  }
  if (onlyChanged && paths !== undefined) {
    throw new Error('Cannot specify paths when onlyChanged is true.');
  }
  if (paths === undefined || paths.length === 0) {
    paths = allPaths;
  }
  const {errorCount, warningCount, output} = await runESLintOnFilesWithOptions(
    paths,
    onlyChanged,
    options
  );
  console.log(output);
  return errorCount === 0 && warningCount === 0;
}

Domain

Subdomains

Frequently Asked Questions

What does runESLint() do?
runESLint() is a function in the react codebase, defined in scripts/eslint/index.js.
Where is runESLint() defined?
runESLint() is defined in scripts/eslint/index.js at line 75.
What does runESLint() call?
runESLint() calls 1 function(s): runESLintOnFilesWithOptions.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free