couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to 4730b11
Date Wed, 06 May 2015 15:29:58 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 49267a412 -> 4730b1144


Gruntfile: use separate .jshintrc file

Make Gruntfile more lightweight and move configuration for JSHint
into it's own config file.

PR: #398
PR-URL: https://github.com/apache/couchdb-fauxton/pull/398
Reviewed-By: garren smith <garren.smith@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/4730b114
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/4730b114
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/4730b114

Branch: refs/heads/master
Commit: 4730b1144c59c9de7edb29b5eafe95e19edbcae2
Parents: 49267a4
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Tue May 5 13:33:12 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Wed May 6 17:32:20 2015 +0200

----------------------------------------------------------------------
 .jshintrc    | 37 +++++++++++++++++++++++++++++++++++++
 Gruntfile.js | 39 +--------------------------------------
 2 files changed, 38 insertions(+), 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4730b114/.jshintrc
----------------------------------------------------------------------
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..f999166
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,37 @@
+{
+  "scripturl": true,
+  "evil": true,
+  "expr": true,
+  "undef": true,
+  "globals": {
+    "document": true,
+    "window": true,
+    "location": true,
+    "alert": true,
+    "console": true,
+    "clearInterval": true,
+    "setInterval": true,
+    "setTimeout": true,
+    "prompt": true,
+    "confirm": true,
+
+    "jQuery": true,
+    "Backbone": true,
+    "$": true,
+    "_": true,
+    "require": true,
+    "module": true,
+    "sinon": true,
+    "it": true,
+    "describe": true,
+    "beforeEach": true,
+    "afterEach": true,
+    "before": true,
+    "after": true,
+    "define": true,
+
+    "Spinner": true,
+    "prettyPrint": true
+
+  }
+}

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4730b114/Gruntfile.js
----------------------------------------------------------------------
diff --git a/Gruntfile.js b/Gruntfile.js
index 1b02c7d..b04993e 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -164,47 +164,10 @@ module.exports = function (grunt) {
       }
     },
 
-    // The jshint option for scripturl is set to lax, because the anchor
-    // override inside main.js needs to test for them so as to not accidentally
-    // route. Settings expr true so we can do `mightBeNullObject && mightBeNullObject.coolfunction()`
     jshint: {
       all: ['app/**/*.js', 'Gruntfile.js', "!app/**/assets/js/*.js", "!app/**/*.jsx"],
       options: {
-        scripturl: true,
-        evil: true,
-        expr: true,
-        undef: true,
-        globals: {
-          document: true,
-          window: true,
-          location: true,
-          alert: true,
-          console: true,
-          clearInterval: true,
-          setInterval: true,
-          setTimeout: true,
-          prompt: true,
-          confirm: true,
-
-          jQuery: true,
-          Backbone: true,
-          $: true,
-          _: true,
-          require: true,
-          module: true,
-          sinon: true,
-          it: true,
-          describe: true,
-          beforeEach: true,
-          afterEach: true,
-          before: true,
-          after: true,
-          define: true,
-
-          Spinner: true,
-          prettyPrint: true
-
-        }
+        jshintrc: '.jshintrc'
       }
     },
 


Mime
View raw message