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.
Sebastian Markbåge committed
May 28, 2020 at 20:32 UTC
6d375f3078b6b58afb9c07dce3c5144344d8d3de
1 file changed
+4
-5
scripts/eslint/index.js
+4
-5
@@ -68,11 +68,10 @@ function runESLint({onlyChanged}) {
68
if (typeof onlyChanged !== 'boolean') {
69
throw new Error('Pass options.onlyChanged as a boolean.');
70
}
71
- const {
72
- errorCount,
73
- warningCount,
74
- output,
75
- } = runESLintOnFilesWithOptions(allPaths, onlyChanged, {fix: true});
71
+ const {errorCount, warningCount, output} = runESLintOnFilesWithOptions(
72
+ allPaths,
73
+ onlyChanged
74
+ );
75
console.log(output);
76
return errorCount === 0 && warningCount === 0;
77
}