Merge pull request #11605 from Snuffleupagus/eslint-fix-arg

Update `gulp lint` to support passing of the `--fix` argument on the command line
This commit is contained in:
Tim van der Meij 2020-02-17 23:22:46 +01:00 committed by GitHub
commit e6aaf097b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1401,6 +1401,9 @@ gulp.task("lint", function(done) {
".",
"--report-unused-disable-directives",
];
if (process.argv.includes("--fix")) {
options.push("--fix");
}
var esLintProcess = startNode(options, { stdio: "inherit" });
esLintProcess.on("close", function(code) {
if (code !== 0) {