Revert autofix lint (#19040)

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.
This commit is contained in:
Sebastian Markbåge
2020-05-28 20:32:34 -07:00
committed by GitHub
parent 441a717963
commit d2de54c0ef
+4 -5
View File
@@ -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;
}