build: Adding configuration for jsonlint

Change-Id: I3c0d0c353a75bcc9da5dd3706d6c5dc6d34570fd
This commit is contained in:
Kunal Mehta 2015-06-11 21:32:18 -07:00
parent 4a9ebfc9a1
commit 2c71920c5c
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"
}
}