Skip to content

Commit 838f91e

Browse files
committed
Merge pull request niklasvh#269 from ssafejava/jshint
Move jshint rules into jshintrc and include from Gruntfile.
2 parents 806cd60 + e782efa commit 838f91e

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

.jshintrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"curly": true,
3+
"eqeqeq": true,
4+
"immed": true,
5+
"latedef": false,
6+
"newcap": true,
7+
"noarg": true,
8+
"sub": true,
9+
"undef": true,
10+
"boss": true,
11+
"eqnull": true,
12+
"browser": true,
13+
"globals": {
14+
"jQuery": true
15+
}
16+
}

Gruntfile.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,7 @@ module.exports = function(grunt) {
5454
},
5555
jshint: {
5656
all: ['<%= concat.dist.dest %>'],
57-
options: {
58-
curly: true,
59-
eqeqeq: true,
60-
immed: true,
61-
latedef: true,
62-
newcap: true,
63-
noarg: true,
64-
sub: true,
65-
undef: true,
66-
boss: true,
67-
eqnull: true,
68-
browser: true,
69-
globals: {
70-
jQuery: true
71-
}
72-
}
57+
options: grunt.file.readJSON('./.jshintrc')
7358
}
7459
});
7560

0 commit comments

Comments
 (0)