Home / Function/ lintEverything() — react Function Reference

lintEverything() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  06fd1e36_aaba_e022_c78f_11c4209292b9["lintEverything()"]
  10e2ef43_1ceb_8344_7ea3_0dd6c0816e16["index.js"]
  06fd1e36_aaba_e022_c78f_11c4209292b9 -->|defined in| 10e2ef43_1ceb_8344_7ea3_0dd6c0816e16
  6ecf6f88_354a_bb25_822b_39a3f1fc89bb["getFormat()"]
  06fd1e36_aaba_e022_c78f_11c4209292b9 -->|calls| 6ecf6f88_354a_bb25_822b_39a3f1fc89bb
  24e7e56c_b9cb_6520_7af4_9545fae79727["getESLintInstance()"]
  06fd1e36_aaba_e022_c78f_11c4209292b9 -->|calls| 24e7e56c_b9cb_6520_7af4_9545fae79727
  eb6434fd_092f_464d_108b_04d746388021["lint()"]
  06fd1e36_aaba_e022_c78f_11c4209292b9 -->|calls| eb6434fd_092f_464d_108b_04d746388021
  style 06fd1e36_aaba_e022_c78f_11c4209292b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/rollup/validate/index.js lines 76–100

async function lintEverything() {
  console.log(`Linting build artifacts...`);

  const allFilepaths = await glob('build/**/*.js');

  const pathsByFormat = new Map();
  for (const filepath of allFilepaths) {
    const format = getFormat(filepath);
    if (format !== null) {
      const paths = pathsByFormat.get(format);
      if (paths === undefined) {
        pathsByFormat.set(format, [filepath]);
      } else {
        paths.push(filepath);
      }
    }
  }

  const promises = [];
  for (const [format, filepaths] of pathsByFormat) {
    const eslint = getESLintInstance(format);
    promises.push(lint(eslint, filepaths));
  }
  await Promise.all(promises);
}

Domain

Subdomains

Frequently Asked Questions

What does lintEverything() do?
lintEverything() is a function in the react codebase, defined in scripts/rollup/validate/index.js.
Where is lintEverything() defined?
lintEverything() is defined in scripts/rollup/validate/index.js at line 76.
What does lintEverything() call?
lintEverything() calls 3 function(s): getESLintInstance, getFormat, lint.

Analyze Your Own Codebase

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

Try Supermodel Free