Skip to content

Commit fcaef88

Browse files
mikesherovdmethvin
authored andcommitted
Clean up jshintrc configs. Close jquerygh-983.
1 parent 08e1345 commit fcaef88

File tree

4 files changed

+31
-36
lines changed

4 files changed

+31
-36
lines changed

.jshintrc

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
2-
"curly": true,
3-
"eqnull": true,
4-
"eqeqeq": true,
5-
"expr": true,
6-
"latedef": true,
7-
"noarg": true,
8-
"quotmark": "double",
9-
"smarttabs": true,
10-
"trailing": true,
11-
"undef": true
2+
"options": {
3+
"curly": true,
4+
"eqeqeq": true,
5+
"eqnull": true,
6+
"expr": true,
7+
"latedef": true,
8+
"noarg": true,
9+
"node": true,
10+
"quotmark": "double",
11+
"smarttabs": true,
12+
"trailing": true,
13+
"undef": true,
14+
"unused": true
15+
}
1216
}

grunt.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
*
66
*/
77

8-
/*jshint node: true */
9-
/*global config:true, task:true, process:true*/
10-
118
module.exports = function( grunt ) {
129

1310
"use strict";
@@ -24,15 +21,10 @@ module.exports = function( grunt ) {
2421
return data;
2522
}
2623

27-
var task = grunt.task;
2824
var file = grunt.file;
29-
var utils = grunt.utils;
3025
var log = grunt.log;
3126
var verbose = grunt.verbose;
32-
var fail = grunt.fail;
33-
var option = grunt.option;
3427
var config = grunt.config;
35-
var template = grunt.template;
3628
var distpaths = [
3729
"dist/jquery.js",
3830
"dist/jquery.min.js"
@@ -99,7 +91,7 @@ module.exports = function( grunt ) {
9991
}
10092

10193
return {
102-
options: jshintrc(),
94+
grunt: jshintrc(),
10395
dist: jshintrc( "src/" ),
10496
tests: jshintrc( "test/" )
10597
};
@@ -260,8 +252,7 @@ module.exports = function( grunt ) {
260252
"Concatenate source (include/exclude modules with +/- flags), embed date/version",
261253
function() {
262254
// Concat specified files.
263-
var i,
264-
compiled = "",
255+
var compiled = "",
265256
modules = this.flags,
266257
explicit = Object.keys(modules).length > 1,
267258
optIn = !modules["*"],

src/.jshintrc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"options": {
3-
"evil": true,
43
"browser": true,
5-
"wsh": true,
4+
"curly": true,
65
"eqnull": true,
6+
"evil": true,
77
"expr": true,
8-
"curly": true,
9-
"trailing": true,
10-
"undef": true,
8+
"maxerr": 100,
9+
"quotmark": "double",
1110
"smarttabs": true,
1211
"sub": true,
13-
"maxerr": 100,
14-
"quotmark": "double"
12+
"trailing": true,
13+
"undef": true,
14+
"wsh": true
1515
},
1616
"globals": {
1717
"define": true,

test/.jshintrc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"options": {
3-
"evil": true,
43
"browser": true,
5-
"wsh": true,
4+
"curly": true,
5+
"devel": true,
66
"eqnull": true,
7+
"evil": true,
78
"expr": true,
8-
"curly": true,
9-
"trailing": true,
10-
"undef": true,
11-
"smarttabs": true,
129
"maxerr": 100,
10+
"quotmark": "double",
11+
"smarttabs": true,
1312
"sub": true,
14-
"quotmark": "double"
13+
"trailing": true,
14+
"undef": true,
15+
"wsh": true
1516
},
1617
"globals": {
1718
"define": true,
@@ -24,7 +25,6 @@
2425
"require": true,
2526
"file": true,
2627
"log": true,
27-
"console": true,
2828
"QUnit": true,
2929
"ok": true,
3030
"equal": true,

0 commit comments

Comments
 (0)