aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorJames Brewer2013-11-26 13:26:10 -0800
committerPete Bacon Darwin2013-12-02 21:20:07 +0000
commit05ef1bd8532bd093ca49e9ccea070b1c2bfa0880 (patch)
treeaad68db9d64fc924142bac665b1728a3cb91bbbf /Gruntfile.js
parentd0f8bd30a6c53f00c1206021f68330cb5e8eda37 (diff)
downloadangular.js-05ef1bd8532bd093ca49e9ccea070b1c2bfa0880.tar.bz2
chore(grunt): update to latest jshint task
Upgrade JSHint task from ~0.6.4 to ~0.7.2. Two useful changes: ability to set jshintrc option to use jshint's native ability for finding .jshintrc files relative to the linted files and update jshint to 2.3.0. Closes #5143
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 8d21867b..43c3ef97 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -106,45 +106,38 @@ module.exports = function(grunt) {
},
jshint: {
+ options: {
+ jshintrc: true,
+ },
ng: {
files: { src: files['angularSrc'] },
- options: { jshintrc: 'src/.jshintrc' }
},
ngAnimate: {
files: { src: 'src/ngAnimate/**/*.js' },
- options: { jshintrc: 'src/ngAnimate/.jshintrc' }
},
ngCookies: {
files: { src: 'src/ngCookies/**/*.js' },
- options: { jshintrc: 'src/ngCookies/.jshintrc' }
},
ngLocale: {
files: { src: 'src/ngLocale/**/*.js' },
- options: { jshintrc: 'src/ngLocale/.jshintrc' }
},
ngMock: {
files: { src: 'src/ngMock/**/*.js' },
- options: { jshintrc: 'src/ngMock/.jshintrc' }
},
ngResource: {
files: { src: 'src/ngResource/**/*.js' },
- options: { jshintrc: 'src/ngResource/.jshintrc' }
},
ngRoute: {
files: { src: 'src/ngRoute/**/*.js' },
- options: { jshintrc: 'src/ngRoute/.jshintrc' }
},
ngSanitize: {
files: { src: 'src/ngSanitize/**/*.js' },
- options: { jshintrc: 'src/ngSanitize/.jshintrc' }
},
ngScenario: {
files: { src: 'src/ngScenario/**/*.js' },
- options: { jshintrc: 'src/ngScenario/.jshintrc' }
},
ngTouch: {
files: { src: 'src/ngTouch/**/*.js' },
- options: { jshintrc: 'src/ngTouch/.jshintrc' }
}
},