From 237413e75dd3c4b76b0f9ced117f1c9c9cb98ac5 Mon Sep 17 00:00:00 2001 From: Steven Benner Date: Wed, 27 Feb 2013 23:03:17 -0800 Subject: [PATCH] Changed .jshintrc predef lists to globals objects. --- AUTHORS.txt | 1 + src/.jshintrc | 10 +++---- test/.jshintrc | 74 +++++++++++++++++++++++++------------------------- 3 files changed, 43 insertions(+), 42 deletions(-) diff --git a/AUTHORS.txt b/AUTHORS.txt index aba1f8123..f2a2b4401 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -164,3 +164,4 @@ Andrew Plummer Nguyen Phuc Lam Dmitry Gusev Michał Gołębiowski +Steven Benner diff --git a/src/.jshintrc b/src/.jshintrc index a331067e1..fff75a6a8 100644 --- a/src/.jshintrc +++ b/src/.jshintrc @@ -16,9 +16,9 @@ "browser": true, "wsh": true, - "predef": [ - "jQuery", - "define", - "module" - ] + "globals": { + "jQuery": true, + "define": true, + "module": true + } } diff --git a/test/.jshintrc b/test/.jshintrc index 76e215f1e..5e4f23fc7 100644 --- a/test/.jshintrc +++ b/test/.jshintrc @@ -15,41 +15,41 @@ "devel": true, "wsh": true, - "predef": [ - "DOMParser", - "jQuery", - "QUnit", - "module", - "ok", - "equal", - "test", - "asyncTest", - "notEqual", - "deepEqual", - "strictEqual", - "notStrictEqual", - "start", - "stop", - "expect", - "raises", - "ajaxTest", - "testIframe", - "testIframeWithCallback", - "createDashboardXML", - "createXMLFragment", - "moduleTeardown", - "testFoo", - "url", - "t", - "q", - "amdDefined", - "fireNative", - "Globals", - "hasPHP", - "isLocal", - "originaljQuery", - "$", - "original$", - "externalHost" - ] + "globals": { + "DOMParser": true, + "jQuery": true, + "QUnit": true, + "module": true, + "ok": true, + "equal": true, + "test": true, + "asyncTest": true, + "notEqual": true, + "deepEqual": true, + "strictEqual": true, + "notStrictEqual": true, + "start": true, + "stop": true, + "expect": true, + "raises": true, + "ajaxTest": true, + "testIframe": true, + "testIframeWithCallback": true, + "createDashboardXML": true, + "createXMLFragment": true, + "moduleTeardown": true, + "testFoo": true, + "url": true, + "t": true, + "q": true, + "amdDefined": true, + "fireNative": true, + "Globals": true, + "hasPHP": true, + "isLocal": true, + "originaljQuery": true, + "$": true, + "original$": true, + "externalHost": true + } } -- 2.39.5