You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by gt...@apache.org on 2013/03/11 16:11:04 UTC
[37/50] [abbrv] git commit: Switch legacy options in .jshintrc for
newer options.
Switch legacy options in .jshintrc for newer options.
It makes sense to keep things up to date, following project updates.
Legacy will still work at the moment, but not forever.
* "globals" can be used instead of "prefdef"
* there is no more "nomen" or "white" option
* add "trailing" (whitespace) to cover for "white" option
Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/ee0c93d4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/ee0c93d4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/ee0c93d4
Branch: refs/heads/master
Commit: ee0c93d47b0c99becb91ccbcf8c51312d7141c86
Parents: 0827adf
Author: Brent Lintner <br...@gmail.com>
Authored: Tue Oct 9 11:49:11 2012 -0400
Committer: Brent Lintner <br...@gmail.com>
Committed: Thu Feb 14 14:34:00 2013 -0500
----------------------------------------------------------------------
.jshintrc | 167 +++++++++++++++++++++++++++++++-------------------------
1 files changed, 92 insertions(+), 75 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/ee0c93d4/.jshintrc
----------------------------------------------------------------------
diff --git a/.jshintrc b/.jshintrc
index 4d83b9c..4b39f35 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -1,76 +1,94 @@
{
- "predef": [
- "stagewebview",
- "FileReader", "FileWriter",
- "WebKitBlobBuilder", "BlobBuilder",
- "webkitNotifications",
- "FileError",
- "Blob",
- "DOMDocument",
- "$", "it", "describe",
- "xit", "xdescribe",
- "itBrowser", "describeBrowser",
- "beforeEach", "afterEach",
- "runs", "waits", "waitsFor",
- "DOMElement",
- "it", "describe",
- "spyOn", "expect",
- "blackberry",
- "__dirname",
- "Service",
- "process",
- "jasmine",
- "Acceleration",
- "window",
- "module",
- "DOMParser",
- "escape",
- "global",
- "unescape",
- "NetworkStatus",
- "document",
- "Audio",
- "openDatabase",
- "setTimeout",
- "tinyHippos",
- "th_panel",
- "jWorkflow",
- "NamedNodeMap",
- "jsUnity",
- "jQuery",
- "jsUnityRunner",
- "escape",
- "Widget",
- "WidgetManager",
- "widget",
- "__TINYHIPPOS_ENV__",
- "location",
- "XMLHttpRequest",
- "localStorage",
- "chrome",
- "navigator",
- "XPathEvaluator",
- "XPathResult",
- "arguments",
- "ContactError",
- "ContactName",
- "ContactField",
- "ContactFindOptions",
- "ContactAccount",
- "ContactAddress",
- "ContactOrganization",
- "screen",
- "ThreeDee",
- "Draw",
- "sinon",
- "setInterval", "clearInterval", "setTimeout", "clearTimeout",
- "require", "Contact", "Position", "Coordinates", "Node",
- "OpenLayers",
- "cordova",
- "ripple",
- "moment",
- "accounting"
- ],
+ "globals": {
+ "stagewebview": false,
+ "FileReader": false,
+ "FileWriter": false,
+ "WebKitBlobBuilder": false,
+ "BlobBuilder": false,
+ "webkitNotifications": false,
+ "FileError": false,
+ "Blob": false,
+ "DOMDocument": false,
+ "$": true,
+ "it": false,
+ "describe": false,
+ "xit": false,
+ "xdescribe": false,
+ "itBrowser": false,
+ "describeBrowser": false,
+ "beforeEach": false,
+ "afterEach": false,
+ "runs": false,
+ "waits": false,
+ "waitsFor": false,
+ "DOMElement": false,
+ "it": false,
+ "describe": false,
+ "spyOn": false,
+ "expect": false,
+ "blackberry": true,
+ "__dirname": false,
+ "Service": true,
+ "process": false,
+ "jasmine": true,
+ "Acceleration": true,
+ "window": false,
+ "module": false,
+ "DOMParser": false,
+ "escape": false,
+ "global": false,
+ "unescape": false,
+ "NetworkStatus": false,
+ "document": false,
+ "Audio": false,
+ "openDatabase": false,
+ "setTimeout": false,
+ "tinyHippos": false,
+ "th_panel": false,
+ "jWorkflow": true,
+ "NamedNodeMap": false,
+ "jsUnity": false,
+ "jQuery": false,
+ "jsUnityRunner": false,
+ "escape": false,
+ "Widget": false,
+ "WidgetManager": false,
+ "widget": false,
+ "__TINYHIPPOS_ENV__": false,
+ "location": false,
+ "XMLHttpRequest": false,
+ "localStorage": false,
+ "chrome": false,
+ "navigator": false,
+ "XPathEvaluator": false,
+ "XPathResult": false,
+ "arguments": false,
+ "ContactError": true,
+ "ContactName": true,
+ "ContactField": true,
+ "ContactFindOptions": true,
+ "ContactAccount": true,
+ "ContactAddress": true,
+ "ContactOrganization": true,
+ "Contact": true,
+ "screen": false,
+ "ThreeDee": false,
+ "Draw": false,
+ "sinon": false,
+ "setInterval": false,
+ "clearInterval": false,
+ "setTimeout": false,
+ "clearTimeout": false,
+ "require": false,
+ "Position": true,
+ "Coordinates": true,
+ "Node": false,
+ "OpenLayers": false,
+ "cordova": false,
+ "ripple": false,
+ "moment": true,
+ "accounting": true
+ },
"node" : true,
"es5" : true,
@@ -79,7 +97,6 @@
"boss" : false,
"curly": false,
"bitwise" : true,
- "white": true,
"indent": 4,
"evil": false,
"devel": true,
@@ -92,12 +109,12 @@
"noarg": true,
"noempty": false,
"nonew": false,
- "nomen": false,
"onevar": true,
"plusplus": false,
"regexp": false,
"undef": true,
"sub": true,
"strict": false,
- "unused": true
+ "unused": true,
+ "trailing": true
}