Bug 1463673 - Enable ESLint rule require-expected-throws-or-rejects for toolkit/. r=mossop
authorMark Banner <standard8@mozilla.com>
Tue, 22 May 2018 20:52:49 +0100
changeset 801203 d73afee801c0c857899f86a58f9963234f761208
parent 801202 1350bcc2983eed6a9ed95586d9807ef1ec69dd9e
child 801204 e29c63f108aaeb3898e4acb0ff51b2dec2593d0c
push id111603
push usermozilla@kaply.com
push dateTue, 29 May 2018 22:12:07 +0000
reviewersmossop
bugs1463673
milestone62.0a1
Bug 1463673 - Enable ESLint rule require-expected-throws-or-rejects for toolkit/. r=mossop MozReview-Commit-ID: AWqIwOIZsMa
.eslintrc.js
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -53,18 +53,17 @@ module.exports = {
     //  mozilla/require-expected-throws-or-rejects for now.
     "files": [
       "browser/extensions/formautofill/test/unit/test_storage_tombstones.js",
       "browser/modules/test/browser/**",
       "browser/tools/mozscreenshots/browser_boundingbox.js",
       "devtools/client/inspector/extensions/test/head_devtools_inspector_sidebar.js",
       "storage/test/unit/**",
       "testing/marionette/test/unit/**",
-      "toolkit/components/**",
-      "toolkit/modules/tests/xpcshell/**",
+      "toolkit/components/extensions/**",
       "toolkit/mozapps/extensions/test/xpcshell/**"
     ],
     "rules": {
       "mozilla/require-expected-throws-or-rejects": "off",
     }
   }, {
     // XXX Bug 1452706. These directories are still being fixed, so turn off
     //  mozilla/require-expected-throws-or-rejects for now.