Skip to content

Commit

Permalink
Update jshint config for arrow functions in grunt task.
Browse files Browse the repository at this point in the history
  • Loading branch information
evanvosberg committed Feb 10, 2020
1 parent 9d1a450 commit 3b4c51f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
62 changes: 31 additions & 31 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"bitwise" : false, // Prohibits the use of bitwise operators (not confuse & with &&)
"curly" : true, // Requires to always put curly braces around blocks in loops and conditionals
"eqeqeq" : false, // Prohibits the use of == and != in favor of === and !==
"eqnull" : true, // Suppresses warnings about == null comparisons
"immed" : true, // Requires immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"latedef" : true, // Prohibits the use of a variable before it was defined
"newcap" : false, // Requires to capitalize names of constructor functions
"noarg" : true, // Prohibits the use of arguments.caller and arguments.callee
"strict" : false, // Requires all functions to run in ECMAScript 5's strict mode
"undef" : true, // Require non-global variables to be declared (prevents global leaks)
"asi" : true, // Suppresses warnings about missing semicolons
"funcscope" : false,
"shadow" : true,
"expr" : true,
"-W041" : true,
"-W018" : true,
"globals": {
"CryptoJS" : true,
"escape" : true,
"unescape" : true,
"Int8Array" : true,
"Int16Array" : true,
"Int32Array" : true,
"Uint8Array" : true,
"Uint16Array" : true,
"Uint32Array" : true,
"Uint8ClampedArray" : true,
"ArrayBuffer" : true,
"Float32Array" : true,
"Float64Array" : true
}
"bitwise": false, // Prohibits the use of bitwise operators (not confuse & with &&)
"curly": true, // Requires to always put curly braces around blocks in loops and conditionals
"eqeqeq": false, // Prohibits the use of == and != in favor of === and !==
"eqnull": true, // Suppresses warnings about == null comparisons
"immed": true, // Requires immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"latedef": false, // Prohibits the use of a variable before it was defined
"newcap": false, // Requires to capitalize names of constructor functions
"noarg": true, // Prohibits the use of arguments.caller and arguments.callee
"strict": false, // Requires all functions to run in ECMAScript 5's strict mode
"undef": true, // Require non-global variables to be declared (prevents global leaks)
"asi": true, // Suppresses warnings about missing semicolons
"funcscope": false,
"shadow": true,
"expr": true,
"-W041": true,
"-W018": true,
"globals": {
"CryptoJS": true,
"escape": true,
"unescape": true,
"Int8Array": true,
"Int16Array": true,
"Int32Array": true,
"Uint8Array": true,
"Uint16Array": true,
"Uint32Array": true,
"Uint8ClampedArray": true,
"ArrayBuffer": true,
"Float32Array": true,
"Float64Array": true
}
}
1 change: 1 addition & 0 deletions grunt/tasks/modularize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*jshint node: true*/
/*jshint esversion: 6*/

var _ = require("lodash"),

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"grunt-cli": "^1.3.2",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-copy": "^0.6.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-jshint": "^2.1.0",
"grunt-jsonlint": "^1.0.4",
"grunt-update-json": "^0.2.0",
"load-grunt-config": "^0.16.0",
Expand Down

0 comments on commit 3b4c51f

Please sign in to comment.