Merge pull request #269 from ssafejava/jshint

Move jshint rules into jshintrc and include from Gruntfile.
This commit is contained in:
Niklas von Hertzen 2013-09-17 23:29:37 -07:00
commit 838f91e156
2 changed files with 17 additions and 16 deletions

16
.jshintrc Normal file
View File

@ -0,0 +1,16 @@
{
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": false,
"newcap": true,
"noarg": true,
"sub": true,
"undef": true,
"boss": true,
"eqnull": true,
"browser": true,
"globals": {
"jQuery": true
}
}

View File

@ -54,22 +54,7 @@ module.exports = function(grunt) {
},
jshint: {
all: ['<%= concat.dist.dest %>'],
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true,
globals: {
jQuery: true
}
}
options: grunt.file.readJSON('./.jshintrc')
}
});