function processFile(filename, configHelper, options, linter) {

    const text = fs.readFileSync(path.resolve(filename), "utf8");

    return processText(
        text,
        configHelper,
        filename,
        options.fix,
        options.allowInlineConfig,
        options.reportUnusedDisableDirectives,
        linter
    );
}
function processFile(filename, configHelper, options, linter) {

    const text = fs.readFileSync(path.resolve(filename), "utf8");

    return processText(
        text,
        configHelper,
        filename,
        options.fix,
        options.allowInlineConfig,
        options.reportUnusedDisableDirectives,
        linter
    );
}
function processFile ( filename , configHelper , options , linter ) { const text = fs . readFileSync ( path . resolve ( filename ) , "utf8" ) ; return processText ( text , configHelper , filename , options . fix , options . allowInlineConfig , options . reportUnusedDisableDirectives , linter ) ; }
Processes an individual file using ESLint. Files used here are known to
exist, so no need to check that here.
@param {string} filename The filename of the file being checked.
@param {Object} configHelper The configuration options for ESLint.
@param {Object} options The CLIEngine options object.
@param {Linter} linter Linter context
@returns {{rules: LintResult, config: Object}} The results for linting on this text and the fully-resolved config for it.
@private
Processes an individual file using ESLint . Files used here are known to exist so no need to check that here .
Process a single file