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:
commit
e6aaf097b6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user