Skip to content

Commit 3b4c51f

Browse files
committed
Update jshint config for arrow functions in grunt task.
1 parent 9d1a450 commit 3b4c51f

File tree

3 files changed

+33
-32
lines changed

3 files changed

+33
-32
lines changed

.jshintrc

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
{
2-
"bitwise" : false, // Prohibits the use of bitwise operators (not confuse & with &&)
3-
"curly" : true, // Requires to always put curly braces around blocks in loops and conditionals
4-
"eqeqeq" : false, // Prohibits the use of == and != in favor of === and !==
5-
"eqnull" : true, // Suppresses warnings about == null comparisons
6-
"immed" : true, // Requires immediate invocations to be wrapped in parens e.g. `(function () { } ());`
7-
"latedef" : true, // Prohibits the use of a variable before it was defined
8-
"newcap" : false, // Requires to capitalize names of constructor functions
9-
"noarg" : true, // Prohibits the use of arguments.caller and arguments.callee
10-
"strict" : false, // Requires all functions to run in ECMAScript 5's strict mode
11-
"undef" : true, // Require non-global variables to be declared (prevents global leaks)
12-
"asi" : true, // Suppresses warnings about missing semicolons
13-
"funcscope" : false,
14-
"shadow" : true,
15-
"expr" : true,
16-
"-W041" : true,
17-
"-W018" : true,
18-
"globals": {
19-
"CryptoJS" : true,
20-
"escape" : true,
21-
"unescape" : true,
22-
"Int8Array" : true,
23-
"Int16Array" : true,
24-
"Int32Array" : true,
25-
"Uint8Array" : true,
26-
"Uint16Array" : true,
27-
"Uint32Array" : true,
28-
"Uint8ClampedArray" : true,
29-
"ArrayBuffer" : true,
30-
"Float32Array" : true,
31-
"Float64Array" : true
32-
}
2+
"bitwise": false, // Prohibits the use of bitwise operators (not confuse & with &&)
3+
"curly": true, // Requires to always put curly braces around blocks in loops and conditionals
4+
"eqeqeq": false, // Prohibits the use of == and != in favor of === and !==
5+
"eqnull": true, // Suppresses warnings about == null comparisons
6+
"immed": true, // Requires immediate invocations to be wrapped in parens e.g. `(function () { } ());`
7+
"latedef": false, // Prohibits the use of a variable before it was defined
8+
"newcap": false, // Requires to capitalize names of constructor functions
9+
"noarg": true, // Prohibits the use of arguments.caller and arguments.callee
10+
"strict": false, // Requires all functions to run in ECMAScript 5's strict mode
11+
"undef": true, // Require non-global variables to be declared (prevents global leaks)
12+
"asi": true, // Suppresses warnings about missing semicolons
13+
"funcscope": false,
14+
"shadow": true,
15+
"expr": true,
16+
"-W041": true,
17+
"-W018": true,
18+
"globals": {
19+
"CryptoJS": true,
20+
"escape": true,
21+
"unescape": true,
22+
"Int8Array": true,
23+
"Int16Array": true,
24+
"Int32Array": true,
25+
"Uint8Array": true,
26+
"Uint16Array": true,
27+
"Uint32Array": true,
28+
"Uint8ClampedArray": true,
29+
"ArrayBuffer": true,
30+
"Float32Array": true,
31+
"Float64Array": true
32+
}
3333
}

grunt/tasks/modularize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*jshint node: true*/
2+
/*jshint esversion: 6*/
23

34
var _ = require("lodash"),
45

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"grunt-cli": "^1.3.2",
2929
"grunt-contrib-clean": "^0.6.0",
3030
"grunt-contrib-copy": "^0.6.0",
31-
"grunt-contrib-jshint": "^0.10.0",
31+
"grunt-contrib-jshint": "^2.1.0",
3232
"grunt-jsonlint": "^1.0.4",
3333
"grunt-update-json": "^0.2.0",
3434
"load-grunt-config": "^0.16.0",

0 commit comments

Comments
 (0)