Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
feat(grunt): quality code more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Dec 29, 2013
1 parent 0d64db0 commit 332ebff
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 12 deletions.
23 changes: 23 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"boss": true,
"browser": true,
"eqnull": true,
"expr": true,
"globalstrict": true,
"immed": true,
"laxbreak": true,
"loopfunc": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": true,
"quotmark": true,
"smarttabs": true,
"sub": true,
"trailing": true,
"undef": true,
"unused": true,
"globals": {
"angular": false
}
}
38 changes: 26 additions & 12 deletions gruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,32 @@ module.exports = function (grunt) {
rm_tmp: {src: ['tmp']}
},
jshint: {
files:['modules/**/*.js', 'gruntFile.js', 'test/**/*Spec.js', 'demo/**/*.js'],
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
boss: true,
eqnull: true,
globals: {}
src: {
files:{ src : ['modules/**/*.js', '!modules/**/test/*Spec.js','demo/**/*.js'] },
options: { jshintrc: '.jshintrc' }
},
test: {
files:{ src : [ 'modules/**/test/*Spec.js', 'gruntFile.js'] },
options: grunt.util._.extend({}, grunt.file.readJSON('.jshintrc'), {
node: true,
globals: {
angular: false,
inject: false,
jQuery: false,

jasmine: false,
afterEach: false,
beforeEach: false,
ddescribe: false,
describe: false,
expect: false,
iit: false,
it: false,
spyOn: false,
xdescribe: false,
xit: false
}
})
}
},
copy: {
Expand Down

0 comments on commit 332ebff

Please sign in to comment.