Skip to content

Commit

Permalink
add nolint command line option, similar to notest (prebid#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
snapwich authored and AdSpacesDevelopers committed Jan 30, 2019
1 parent e8c1ad8 commit a29b383
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit a29b383

Please sign in to comment.