Skip to content

Commit

Permalink
Extract JSHint settings to .jshintrc
Browse files Browse the repository at this point in the history
- Changed jQuery predefs to "jquery" flag
- Removed console predef since it was only used in commented out code
  • Loading branch information
nschonni committed Oct 7, 2013
1 parent b9fca30 commit 3faa8a6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
21 changes: 21 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"curly": false,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"sub": true,
"undef": false,
"unused": true,
"boss": true,
"eqnull": true,
"browser": true,

"predef": [
"define",
"module",
"mfp"
],
"jquery": true
}
29 changes: 5 additions & 24 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,15 @@ module.exports = function(grunt) {
},

jshint: {
all: ['Gruntfile.js', 'src/js/*.js'],
all: [
'Gruntfile.js',
'src/js/*.js'
],
options: {
"curly": false,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"sub": true,
"undef": false,
"unused": true,
"boss": true,
"eqnull": true,
"browser": true,

"predef": [
"jQuery",
"define",
"module",
"console",
"mfp",
"$"
]
jshintrc: '.jshintrc'
}

},


mfpbuild: {
all: {
src: [
Expand Down

0 comments on commit 3faa8a6

Please sign in to comment.