source: Dev/trunk/node_modules/grunt-jsonlint/Gruntfile.js @ 532

Last change on this file since 532 was 505, checked in by hendrikvanantwerpen, 11 years ago

Added linting of json files.

File size: 781 bytes
Line 
1module.exports = function(grunt) {
2
3  // Project configuration.
4  grunt.initConfig({
5    pkg: grunt.file.readJSON('package.json'),
6
7    jshint: {
8      gruntfile: {
9        src: [ 'Gruntfile.js' ]
10      },
11      packageJson: {
12        src: [ 'package.json' ]
13      },
14      tasks: {
15        src: [ 'tasks/*.js' ],
16        options: {
17          eqnull: true,
18          curly: true,
19          newcap: true,
20          unused: true,
21          indent: 2,
22          noempty: true,
23
24          node: true
25        }
26      }
27    },
28
29    jsonlint: {
30      sample: {
31        src: [ 'test/valid.json' ]
32      }
33    }
34  });
35
36  grunt.loadNpmTasks('grunt-contrib-jshint');
37
38  require('./tasks/jsonlint')(grunt);
39
40  // Default task(s).
41  grunt.registerTask('default', [ 'jshint', 'jsonlint' ]);
42
43};
Note: See TracBrowser for help on using the repository browser.