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:
parent
8f511754db
commit
6d375f3078
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue