From 6c279ee0d304378deb325c8ae3485c083b71b988 Mon Sep 17 00:00:00 2001 From: etpinard Date: Sun, 15 Nov 2015 21:50:49 -0500 Subject: [PATCH] update jshintrc: - rm maxparms - rm maxstatements - bump maxdepth to 6 - add jasmine env --- .jshintrc | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.jshintrc b/.jshintrc index 8d148c611b7..2190b0e1c7c 100644 --- a/.jshintrc +++ b/.jshintrc @@ -2,7 +2,8 @@ // environments "browser": true, // Define globals exposed by modern browsers. "jquery": false, // Define globals exposed by jQuery. - "node": true, // Define globals exposed by Node.js. + "node": true, // Define globals exposed by Node.js. + "jasmine": true, // Define globals exposed by jasmine // enforcing (true means bug us about it) "camelcase": false, // Force all variable names to use either camelCase style or UPPER_CASE with underscores. @@ -15,10 +16,8 @@ "indent": 4, // Enforce tab width of 4 spaces. "latedef": "nofunc", // Prohibit use of a variable before it is defined. "maxcomplexity": false, // This option lets you control cyclomatic complexity throughout your code. - "maxdepth": 5, // This option lets you control how nested do you want your blocks to be + "maxdepth": 6, // This option lets you control how nested do you want your blocks to be "maxlen": 120, // Enforce line length to 120 characters - "maxparams": 5, // This option lets you set the max number of formal parameters allowed per function - "maxstatements": 60, // This option lets you set the max number of statements allowed per function "newcap": true, // Require capitalized names for constructor functions. "noarg": true, // This option prohibits the use of arguments.caller and arguments.callee. "noempty": true, // This option warns when you have an empty block in your code. @@ -31,7 +30,6 @@ "undef": true, // Prohibit use of explicitly undeclared variables. "unused": true, // Warn when variables are defined but never used. - // relaxing (true means DON'T bug us about it) "asi": false, // This option suppresses warnings about missing semicolons. "boss": false, // This option suppresses warnings about the use of assignments in cases where comparisons are expected. @@ -61,15 +59,6 @@ // global pre defined variables "predef": [ - "angular", - "afterEach", - "beforeEach", - "describe", - "encodeURIComponent", - "expect", - "inject", - "it", - "spyOn", "JSON", "Uint8Array", "Uint16Array", @@ -78,9 +67,6 @@ "Int16Array", "Int32Array", "Float32Array", - "Float64Array", - "require", - "module", - "document" + "Float64Array" ] }