Skip to content

Commit 05ef1bd

Browse files
James Brewerpetebacondarwin
James Brewer
authored andcommitted
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 angular#5143
1 parent d0f8bd3 commit 05ef1bd

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

Gruntfile.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,45 +106,38 @@ module.exports = function(grunt) {
106106
},
107107

108108
jshint: {
109+
options: {
110+
jshintrc: true,
111+
},
109112
ng: {
110113
files: { src: files['angularSrc'] },
111-
options: { jshintrc: 'src/.jshintrc' }
112114
},
113115
ngAnimate: {
114116
files: { src: 'src/ngAnimate/**/*.js' },
115-
options: { jshintrc: 'src/ngAnimate/.jshintrc' }
116117
},
117118
ngCookies: {
118119
files: { src: 'src/ngCookies/**/*.js' },
119-
options: { jshintrc: 'src/ngCookies/.jshintrc' }
120120
},
121121
ngLocale: {
122122
files: { src: 'src/ngLocale/**/*.js' },
123-
options: { jshintrc: 'src/ngLocale/.jshintrc' }
124123
},
125124
ngMock: {
126125
files: { src: 'src/ngMock/**/*.js' },
127-
options: { jshintrc: 'src/ngMock/.jshintrc' }
128126
},
129127
ngResource: {
130128
files: { src: 'src/ngResource/**/*.js' },
131-
options: { jshintrc: 'src/ngResource/.jshintrc' }
132129
},
133130
ngRoute: {
134131
files: { src: 'src/ngRoute/**/*.js' },
135-
options: { jshintrc: 'src/ngRoute/.jshintrc' }
136132
},
137133
ngSanitize: {
138134
files: { src: 'src/ngSanitize/**/*.js' },
139-
options: { jshintrc: 'src/ngSanitize/.jshintrc' }
140135
},
141136
ngScenario: {
142137
files: { src: 'src/ngScenario/**/*.js' },
143-
options: { jshintrc: 'src/ngScenario/.jshintrc' }
144138
},
145139
ngTouch: {
146140
files: { src: 'src/ngTouch/**/*.js' },
147-
options: { jshintrc: 'src/ngTouch/.jshintrc' }
148141
}
149142
},
150143

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
}
4949
],
5050
"dependencies": {
51-
"grunt-contrib-jshint": "~0.6.4"
51+
"grunt-contrib-jshint": "~0.7.2"
5252
}
5353
}

0 commit comments

Comments
 (0)