Skip to content

Commit 275b456

Browse files
committed
Update JSHint's rules.
1 parent 1eac429 commit 275b456

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.jshintrc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{
22
"curly": true,
3+
"eqnull": true,
4+
"forin": true,
35
"immed": true,
46
"latedef": true,
57
"newcap": true,
68
"noarg": true,
7-
"sub": true,
8-
"undef": true,
9-
"boss": true,
10-
"eqnull": true,
11-
"forin": true,
129
"noempty": true,
13-
"rhino": false,
14-
"jquery": true,
10+
"nonbsp": true,
11+
"undef": true,
1512
"globals": {
16-
"CSSLint": true
13+
"CSSLint": true,
14+
"YUITest": true
1715
}
1816
}

tests/all-rules.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* When run in addition to the other tests, this causes the Rhino CLI test
88
* to fail due to Java stack overflow. This must be run separate from other tests.
99
*/
10+
11+
/*jshint loopfunc: true */
12+
1013
(function(){
11-
/*jshint loopfunc: true */
1214
/*global YUITest, CSSLint*/
1315
var Assert = YUITest.Assert,
1416
suite = new YUITest.TestSuite("General Tests for all Rules"),

0 commit comments

Comments
 (0)