Skip to content

Commit 3faa8a6

Browse files
committed
Extract JSHint settings to .jshintrc
- Changed jQuery predefs to "jquery" flag - Removed console predef since it was only used in commented out code
1 parent b9fca30 commit 3faa8a6

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

.jshintrc

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"curly": false,
3+
"eqeqeq": true,
4+
"immed": true,
5+
"latedef": true,
6+
"newcap": true,
7+
"noarg": true,
8+
"sub": true,
9+
"undef": false,
10+
"unused": true,
11+
"boss": true,
12+
"eqnull": true,
13+
"browser": true,
14+
15+
"predef": [
16+
"define",
17+
"module",
18+
"mfp"
19+
],
20+
"jquery": true
21+
}

Gruntfile.js

+5-24
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,15 @@ module.exports = function(grunt) {
4242
},
4343

4444
jshint: {
45-
all: ['Gruntfile.js', 'src/js/*.js'],
45+
all: [
46+
'Gruntfile.js',
47+
'src/js/*.js'
48+
],
4649
options: {
47-
"curly": false,
48-
"eqeqeq": true,
49-
"immed": true,
50-
"latedef": true,
51-
"newcap": true,
52-
"noarg": true,
53-
"sub": true,
54-
"undef": false,
55-
"unused": true,
56-
"boss": true,
57-
"eqnull": true,
58-
"browser": true,
59-
60-
"predef": [
61-
"jQuery",
62-
"define",
63-
"module",
64-
"console",
65-
"mfp",
66-
"$"
67-
]
50+
jshintrc: '.jshintrc'
6851
}
69-
7052
},
7153

72-
7354
mfpbuild: {
7455
all: {
7556
src: [

0 commit comments

Comments
 (0)