src/prelint.js
function lintFiles(files) {

    const eslint = new CLIEngine()

    const report = eslint.executeOnFiles(files)

    return {
        text: friendlyFormatter(report.results),
        errorCount: report.errorCount,
    }

}
function lintFiles(files) {

    const eslint = new CLIEngine()

    const report = eslint.executeOnFiles(files)

    return {
        text: friendlyFormatter(report.results),
        errorCount: report.errorCount,
    }

}
function lintFiles ( files ) { const eslint = new CLIEngine ( ) const report = eslint . executeOnFiles ( files ) return { text : friendlyFormatter ( report . results ) , errorCount : report . errorCount , } }
Perform ESLint validation on list of files
@param {Array<string>} files
@returns {Object} report
Perform ESLint validation on list of files