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 420264 d73afee801c0c857899f86a58f9963234f761208
parent 420263 1350bcc2983eed6a9ed95586d9807ef1ec69dd9e
child 420265 e29c63f108aaeb3898e4acb0ff51b2dec2593d0c
push id64576
push usermbanner@mozilla.com
push dateTue, 29 May 2018 17:46:42 +0000
treeherderautoland@d73afee801c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmossop
bugs1463673
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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.