Avoid setting `jshint node: true` in every Grunt JS file

This commit is contained in:
Zlatan Vasović 2014-02-07 13:34:17 +01:00
parent 4d7b2ddba9
commit aead10fafa
6 changed files with 4 additions and 6 deletions

View File

@ -44,6 +44,9 @@ module.exports = function (grunt) {
jshintrc: 'js/.jshintrc' jshintrc: 'js/.jshintrc'
}, },
grunt: { grunt: {
options: {
node: true
},
src: ['Gruntfile.js', 'grunt/*.js'] src: ['Gruntfile.js', 'grunt/*.js']
}, },
src: { src: {

View File

@ -6,7 +6,7 @@
* details, see http://creativecommons.org/licenses/by/3.0/. * details, see http://creativecommons.org/licenses/by/3.0/.
*/ */
/* jshint multistr:true */ /* jshint multistr: true */
window.onload = function () { // wait for load in a dumb way because B-0 window.onload = function () { // wait for load in a dumb way because B-0
var cw = '/*!\n' + var cw = '/*!\n' +

View File

@ -1,4 +1,3 @@
/* jshint node: true */
/*! /*!
* Bootstrap Grunt task for Glyphicons data generation * Bootstrap Grunt task for Glyphicons data generation
* http://getbootstrap.com * http://getbootstrap.com

View File

@ -1,4 +1,3 @@
/* jshint node: true */
/*! /*!
* Bootstrap Grunt task for parsing Less docstrings * Bootstrap Grunt task for parsing Less docstrings
* http://getbootstrap.com * http://getbootstrap.com

View File

@ -1,4 +1,3 @@
/* jshint node: true */
/* global btoa: true */ /* global btoa: true */
/*! /*!

View File

@ -1,5 +1,3 @@
/* jshint node: true */
/* /*
This Grunt task updates the npm-shrinkwrap.canonical.json file that's used as the key for Bootstrap's npm packages cache. This Grunt task updates the npm-shrinkwrap.canonical.json file that's used as the key for Bootstrap's npm packages cache.
This task should be run and the updated file should be committed whenever Bootstrap's dependencies change. This task should be run and the updated file should be committed whenever Bootstrap's dependencies change.