Merge "build: Adding configuration for jsonlint"

This commit is contained in:
jenkins-bot 2015-06-12 15:57:24 +00:00 committed by Gerrit Code Review
commit 054cd1a5cb
2 changed files with 10 additions and 2 deletions

View file

@ -9,6 +9,7 @@ module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-csslint' );
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jscs' );
@ -42,10 +43,16 @@ module.exports = function ( grunt ) {
'<%= csslint.all %>'
],
tasks: 'test'
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
}
} );
grunt.registerTask( 'lint', [ 'jscs', 'jshint', 'csslint', 'banana' ] );
grunt.registerTask( 'lint', [ 'jscs', 'jshint', 'csslint', 'jsonlint', 'banana' ] );
grunt.registerTask( 'test', 'lint' );
grunt.registerTask( 'default', 'test' );
};

View file

@ -14,6 +14,7 @@
"grunt-contrib-watch": "0.6.1",
"grunt-banana-checker": "0.2.2",
"grunt-jscs": "1.8.0",
"jshint": "2.8.0"
"jshint": "2.8.0",
"grunt-jsonlint": "1.0.4"
}
}