Skip to content

Commit

Permalink
Merge pull request #11605 from Snuffleupagus/eslint-fix-arg
Browse files Browse the repository at this point in the history
Update `gulp lint` to support passing of the `--fix` argument on the command line
  • Loading branch information
timvandermeij authored Feb 17, 2020
2 parents 64351ca + 1c76ef7 commit e6aaf09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e6aaf09

Please sign in to comment.