'use strict';

module.exports = function (grunt) {

    // Load external grunt task config.
    grunt.loadTasks('./grunt');

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-jscs');
    
    grunt.initConfig({
        config: {
            files: {
                lint: [
                    'src/**/*.js'
                ]
            }
        },
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                '<%= config.files.lint %>'
            ]
        },
        jscs: {
            options: {
                config: '.jscsrc'
            },
            src: '<%= config.files.lint %>'
        }
    });

    grunt.registerTask('lint', 'Run the JS linters.', [
        'jshint',
        'jscs'
    ]);

};

Add grunt file containing a lint task.
Add grunt file containing a lint task.
