Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('jsonlint', function() {
return gulp.src([
'package.json',
'bower.json',
options.param.src + '/manifest.webapp',
options.param.src + '/manifest.json',
options.param.src + '/**/*.json'
])
.pipe(jsonlint())
.pipe(jsonlint.reporter());
});
gulp.task('lint:json', (done) => {
gulp.src(jsonFiles)
.pipe(debug({title: 'jsonlint:'}))
.pipe(jsonlint())
.pipe(jsonlint.failAfterError())
.pipe(jsonlint.reporter());
done();
});
gulp.task('lint:json', gulp.series(function(done) {
gulp.src(jsonFiles)
.pipe(debug({title: 'lint:json'}))
.pipe(jsonLint())
.pipe(jsonLint.failAfterError())
.pipe(jsonLint.reporter());
done();
}));
gulp.task('lint:json', gulp.series( (done) => {
gulp.src(jsonFiles)
.pipe(debug({title: 'json-lint'}))
.pipe(jsonlint())
.pipe(jsonlint.failAfterError())
.pipe(jsonlint.reporter());
done();
}));
gulp.task('jsonlint', function() {
return gulp.src(['./templates/json/*.json', './*.json'])
.pipe(jsonlint())
.pipe(jsonlint.reporter(jshintStyle));
});
gulp.task('jsonlint', function() {
return gulp.src(['./*.json'])
.pipe(jsonlint())
.pipe(jsonlint.reporter(jshintStyle));
});
gulp.task('lint', function () {
return gulp.src('./src/*.json')
.pipe(jsonlint())
.pipe(jsonlint.reporter(failReporter));
});