-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
555 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import eslintReporter from 'eslint/lib/cli-engine/formatters/codeframe.js'; | ||
import eslintReporter from 'eslint-formatter-codeframe'; | ||
|
||
export default function(files, jsLinter) { | ||
const report = jsLinter.executeOnFiles(files); | ||
const result = eslintReporter(report.results); | ||
export default async function(files, jsLinter) { | ||
const report = await jsLinter.lintFiles(files); | ||
|
||
if (result) { | ||
console.log(result); | ||
} | ||
if (report.length > 0) { | ||
let result = eslintReporter(report); | ||
if (result) { | ||
console.log(result); | ||
} | ||
|
||
return result; | ||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.