Bug 1328851 - Enable eslint rule no-undef for storage/. r=mak
authorMark Banner <standard8@mozilla.com>
Thu, 05 Jan 2017 11:54:49 +0000
changeset 456699 7c081650eddf3c9683cc36645e96caae247daf92
parent 456698 58396ef7d40977196e0f72346b836819f9768fc5
child 456700 a914b8b3f3019d71e20a6ae3cccb1f81b425bbad
push id40575
push userjwwang@mozilla.com
push dateFri, 06 Jan 2017 02:27:46 +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.