Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit d280eb8

Browse files
committed
Merge pull request #291 from crrkit01/fix-jshint-build
Set jshint configuration option 'latedef' to false
2 parents af34eb2 + 79fe7fb commit d280eb8

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

gruntFile.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ module.exports = function (grunt) {
2323
options: testConfig('test/test.conf.js')
2424
}
2525
},
26-
jshint:{
27-
files:['src/**/*.js', 'test/**/*.js', 'demo/**/*.js'],
28-
options:{
29-
curly:true,
30-
eqeqeq:true,
31-
immed:true,
32-
latedef:true,
33-
newcap:true,
34-
noarg:true,
35-
sub:true,
36-
boss:true,
37-
eqnull:true,
38-
globals:{}
26+
jshint: {
27+
files: ['src/**/*.js', 'test/**/*.js', 'demo/**/*.js'],
28+
options: {
29+
curly: true,
30+
eqeqeq: true,
31+
immed: true,
32+
latedef: 'nofunc',
33+
newcap: true,
34+
noarg: true,
35+
sub: true,
36+
boss: true,
37+
eqnull: true,
38+
globals: {}
3939
}
4040
},
4141
uglify: {

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
"dependencies": {},
1010
"devDependencies": {
1111
"grunt": "~0.4",
12-
"grunt-karma": "0.7.0",
13-
"grunt-contrib-jshint": "~0.2",
12+
"grunt-contrib-jshint": "0.11.2",
1413
"grunt-contrib-uglify": "~0.7",
15-
"matchdep": "~0.1",
14+
"grunt-karma": "0.7.0",
1615
"karma": "~0.10",
16+
"karma-chrome-launcher": "0.1",
1717
"karma-coverage": "~0.1",
18-
"load-grunt-tasks": "~0.2",
18+
"karma-firefox-launcher": "0.1",
1919
"karma-jasmine": "0.1",
20-
"karma-chrome-launcher": "0.1",
21-
"karma-firefox-launcher": "0.1"
20+
"load-grunt-tasks": "~0.2",
21+
"matchdep": "~0.1"
2222
},
2323
"scripts": {
2424
"test": "grunt"

0 commit comments

Comments
 (0)