Function lintChanges

  • This is the main entry point to this package's API. Based on the given arguments, this detects changed files and runs linting on them for present and maybe past file contents. It returns a list of lint results. To see format those results, see formatLintResults.

    Parameters

    • apiArgs: Readonly<Partial<{
          baseRef: string;
          checkoutBaseRef: boolean;
          cwd: string;
          pastSetupCommand: string;
          silent: boolean;
      }>> = {}
    • eslintArgString: string = ''

    Returns Promise<ESLint.LintResult[]>