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 8f511754db
commit 6d375f3078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

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;
}