| 12345678910111213141516171819202122232425262728293031 |
- /* jshint node: true */
- 'use strict';
- var tools = require( './res/tools' );
- module.exports = function( grunt ) {
- tools.setupMultitaskConfig( grunt, {
- task: 'jshint',
- defaultOptions: grunt.file.readJSON( 'dev/tasks/jshint-config.json' ),
- targets: {
- all: function() {
- return [ '**/*.js' ];
- },
- git: function() {
- return tools.getGitDirtyFiles();
- }
- }
- } );
- // Take ignore list from .gitIgnore.
- grunt.config.merge( {
- jshint: {
- options: {
- ignores: tools.getGitIgnore( grunt )
- }
- }
- } );
- grunt.loadNpmTasks( 'grunt-contrib-jshint' );
- };
|