Bug 1338075 - formautofill: Enable no-cpows-in-tests and var-only-at-top-level. r=lchang draft
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Thu, 09 Feb 2017 16:27:42 +0800
changeset 481104 b0b6cbb4b2c384c001d005fcb39072044953895f
parent 481103 7e21fc088dd06e963464d9e03acd4b57ce876c93
child 545111 4015b07eacd3e7c20cc088995406c028ff7c80ae
push id44719
push usermozilla@noorenberghe.ca
push dateThu, 09 Feb 2017 08:31:06 +0000
reviewerslchang
bugs1338075
milestone54.0a1
Bug 1338075 - formautofill: Enable no-cpows-in-tests and var-only-at-top-level. r=lchang MozReview-Commit-ID: HiUq8UDBcir
browser/extensions/formautofill/.eslintrc.js
--- a/browser/extensions/formautofill/.eslintrc.js
+++ b/browser/extensions/formautofill/.eslintrc.js
@@ -12,18 +12,18 @@ module.exports = { // eslint-disable-lin
     "TextDecoder": false,
     "TextEncoder": false,
   },
 
   "rules": {
     // Rules from the mozilla plugin
     "mozilla/balanced-listeners": "error",
     "mozilla/no-aArgs": "warn",
-    "mozilla/no-cpows-in-tests": "warn",
-    "mozilla/var-only-at-top-level": "warn",
+    "mozilla/no-cpows-in-tests": "error",
+    "mozilla/var-only-at-top-level": "error",
 
     "valid-jsdoc": ["error", {
       "prefer": {
         "return": "returns",
       },
       "preferType": {
         "Boolean": "boolean",
         "Number": "number",