From f21bd6fe476a98c0b2f70a1ec25436942c8d1b1d Mon Sep 17 00:00:00 2001 From: Rich Snapp Date: Tue, 2 Oct 2018 16:33:38 -0600 Subject: [PATCH] add nolint command line option, similar to notest --- gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index ced29b266a7..03a0a4a7559 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -76,7 +76,10 @@ function escapePostbidConfig() { }; escapePostbidConfig.displayName = 'escape-postbid-config'; -function lint() { +function lint(done) { + if (argv.nolint) { + return done(); + } return gulp.src(['src/**/*.js', 'modules/**/*.js', 'test/**/*.js']) .pipe(eslint()) .pipe(eslint.format('stylish'))