Bug 1328851 - Enable eslint rule no-undef for storage/. r?mak draft
authorMark Banner <standard8@mozilla.com>
Thu, 05 Jan 2017 11:54:49 +0000
changeset 456431 732caa3da03b8a5dc629c2abbf0c22506d5ef67c
parent 456196 f13abb8ba9f366c9f32a3146245adf642528becd
child 541220 0ebf25c80919ae0b3b93adaa4e8f18a9ba45847f
push id40489
push userbmo:standard8@mozilla.com
push dateThu, 05 Jan 2017 16:32:55 +0000
reviewersmak
bugs1328851
milestone53.0a1
Bug 1328851 - Enable eslint rule no-undef for storage/. r?mak MozReview-Commit-ID: AemgF8H2ySH
storage/.eslintrc.js
storage/test/unit/.eslintrc.js
storage/test/unit/test_statement_executeAsync.js
--- a/storage/.eslintrc.js
+++ b/storage/.eslintrc.js
@@ -1,7 +1,11 @@
 "use strict";
 
 module.exports = {
   "extends": [
     "../toolkit/.eslintrc.js"
-  ]
+  ],
+
+  rules: {
+    "no-undef": "error"
+  }
 };
new file mode 100644
--- /dev/null
+++ b/storage/test/unit/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "../../../testing/xpcshell/xpcshell.eslintrc.js"
+  ]
+};
--- a/storage/test/unit/test_statement_executeAsync.js
+++ b/storage/test/unit/test_statement_executeAsync.js
@@ -2,16 +2,19 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /*
  * This file tests the functionality of mozIStorageBaseStatement::executeAsync
  * for both mozIStorageStatement and mozIStorageAsyncStatement.
  */
 
+// This file uses the internal _quit from testing/xpcshell/head.js */
+/* global _quit */
+
 const INTEGER = 1;
 const TEXT = "this is test text";
 const REAL = 3.23;
 const BLOB = [1, 2];
 
 /**
  * Execute the given statement asynchronously, spinning an event loop until the
  * async statement completes.