Skip to content

Commit

Permalink
Update: Add ESLint API
Browse files Browse the repository at this point in the history
  • Loading branch information
ESLint Jenkins authored and kaicataldo committed Feb 18, 2020
1 parent 1ee6b63 commit 0195f12
Show file tree
Hide file tree
Showing 3 changed files with 426 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cli-engine/cli-engine.js
Expand Up @@ -664,6 +664,8 @@ class CLIEngine {
* @returns {void}
*/
static outputFixes(report) {

// TODO: Write files in parallel.
report.results.filter(result => Object.prototype.hasOwnProperty.call(result, "output")).forEach(result => {
fs.writeFileSync(result.filePath, result.output);
});
Expand Down

1 comment on commit 0195f12

@kaicataldo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created a PR since we're getting started on discussion already. Thanks for all the feedback. This is really helpful.

Please sign in to comment.