Move jshint rules into jshintrc and include from Gruntfile.

This commit is contained in:
ssafejava 2013-09-18 09:37:28 +08:00
parent 806cd60474
commit e782efa614
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')
}
});