Skip to content

Commit e1f55ce

Browse files
authored
add nolint command line option, similar to notest (#3234)
1 parent 6363197 commit e1f55ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ function escapePostbidConfig() {
7676
};
7777
escapePostbidConfig.displayName = 'escape-postbid-config';
7878

79-
function lint() {
79+
function lint(done) {
80+
if (argv.nolint) {
81+
return done();
82+
}
8083
return gulp.src(['src/**/*.js', 'modules/**/*.js', 'test/**/*.js'])
8184
.pipe(eslint())
8285
.pipe(eslint.format('stylish'))

0 commit comments

Comments
 (0)