A gulp wrapper around json-dup-key-validator that has an option to check for duplicated keys.
npm install gulp-json-validator
var gulpJsonValidator = require('gulp-json-validator');
gulp.task('default', function() {
return gulp.src('./**/*.json')
.pipe(gulpJsonValidator({ allowDuplicatedKeys: false, ignoreEmptyFiles: true }))
});
Type: Boolean
Default: false
Whether duplicated keys are allowed in an object or not
Type: Boolean
Default: false
Whether to skip over validating empty files