Skip to content

Commit 1bc184e

Browse files
committed
Update .jshintrc to add Jasmine globals, and use it with grunt jshint task
1 parent 4e80c92 commit 1bc184e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.jshintrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
22
"undef": true,
3-
"smarttabs": true
3+
"smarttabs": true,
4+
"eqnull": true,
5+
"globals" : {
6+
"describe" : true,
7+
"beforeEach" : true,
8+
"åfterEach" : true,
9+
"it" : true,
10+
"expect" : true
11+
}
412
}

Gruntfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ module.exports = function(grunt) {
3131
},
3232

3333
jshint: {
34+
options : {
35+
jshintrc: true
36+
},
3437
files: {
3538
src: [ 'src/**/*.js', 'tests/**/*.js' ]
3639
}

0 commit comments

Comments
 (0)