Skip to content

Commit b7f5c9b

Browse files
committed
Move JSHint config to .jshintrc and .jshintignore
1 parent 8f30e2a commit b7f5c9b

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

.jshintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
release/
3+
lib/
4+
build/

.jshintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"curly": true,
3+
"immed": true,
4+
"latedef": true,
5+
"newcap": true,
6+
"noarg": true,
7+
"sub": true,
8+
"undef": true,
9+
"boss": true,
10+
"eqnull": true,
11+
"forin": true,
12+
"noempty": true,
13+
"rhino": false,
14+
"jquery": true,
15+
"globals": {
16+
"CSSLint": true
17+
}
18+
}

Gruntfile.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -156,24 +156,7 @@ module.exports = function(grunt) {
156156
},
157157
jshint: {
158158
options: {
159-
curly: true,
160-
//eqeqeq: true, TODO: Leaving off due to errors
161-
immed: true,
162-
latedef: true,
163-
newcap: true,
164-
noarg: true,
165-
sub: true,
166-
undef: true,
167-
//unused: true, TODO: Leaving off due to errors around unused instances of CSSLint
168-
boss: true,
169-
eqnull: true,
170-
// Copied from build.xml
171-
forin: true,
172-
noempty: true,
173-
rhino: false,
174-
globals: {
175-
jQuery: true
176-
}
159+
jshintrc: ".jshintrc"
177160
},
178161
gruntfile: {
179162
src: 'Gruntfile.js'

0 commit comments

Comments
 (0)