Skip to content

Commit

Permalink
Revert autofix lint (facebook#19040)
Browse files Browse the repository at this point in the history
I accidentally committed this since I had it on locally so I didn't have
to manually convert things to const.

However, this causes things to always pass lint since CI also runs this.
  • Loading branch information
sebmarkbage authored May 29, 2020
1 parent 8f51175 commit 6d375f3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ function runESLint({onlyChanged}) {
if (typeof onlyChanged !== 'boolean') {
throw new Error('Pass options.onlyChanged as a boolean.');
}
const {
errorCount,
warningCount,
output,
} = runESLintOnFilesWithOptions(allPaths, onlyChanged, {fix: true});
const {errorCount, warningCount, output} = runESLintOnFilesWithOptions(
allPaths,
onlyChanged
);
console.log(output);
return errorCount === 0 && warningCount === 0;
}
Expand Down

0 comments on commit 6d375f3

Please sign in to comment.