Skip to content

Commit

Permalink
Update Gruntfile.js & .jshintrc & .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
syoichi committed Nov 13, 2015
1 parent 75f75fa commit d2f4bca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"no-unexpected-multiline": 2,

"accessor-pairs": 2,
"complexity": [2, 3],
"complexity": [2, 5],
"consistent-return": 2,
"curly": 2,
"default-case": 2,
Expand Down
4 changes: 2 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"freeze": true,
"futurehostile": true,
"latedef": true,
"maxcomplexity": false,
"maxcomplexity": 5,
"maxdepth": 3,
"maxparams": 3,
"maxstatements": 30,
Expand All @@ -18,7 +18,7 @@
"singleGroups": true,
"undef": true,
"unused": true,
"varstmt": false,
"varstmt": true,

"eqnull": true,
"esnext": true,
Expand Down
5 changes: 0 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module.exports = function createGruntConfig(grunt) {
value: 80,
allowComments: true
},
disallowKeywords: ['continue', 'debugger', 'delete', 'void', 'with'],
requireCamelCaseOrUpperCaseIdentifiers: null
}
}
Expand All @@ -60,12 +59,8 @@ module.exports = function createGruntConfig(grunt) {
},
options: {
rules: {
complexity: [1, 5],
camelcase: 0,
'no-var': 0,
'object-shorthand': 0,
'prefer-arrow-callback': 1,
'prefer-template': 1,
'max-len': [2, 80, 2, {
ignoreUrls: true,
ignoreComments: true
Expand Down

0 comments on commit d2f4bca

Please sign in to comment.