Bug 1555300 - .eslintignore no longer needs to ignore directories with no js files. r=mossop
authorMark Banner <standard8@mozilla.com>
Fri, 31 May 2019 08:49:17 +0000
changeset 476333 81b92cef1e230f068da17311b02f0567634907a5
parent 476332 f901cef144f10d625912f76398ef4a67df6225a8
child 476334 0e31bdc88d2731836d466b497610d92402987f03
push id36092
push userarchaeopteryx@coole-files.de
push dateFri, 31 May 2019 17:03:46 +0000
treeherdermozilla-central@8384972e1f6a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmossop
bugs1555300
milestone69.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 1555300 - .eslintignore no longer needs to ignore directories with no js files. r=mossop Differential Revision: https://phabricator.services.mozilla.com/D32993
.eslintignore
build/pgo/index.html
--- a/.eslintignore
+++ b/.eslintignore
@@ -6,33 +6,68 @@
 **/crashtests/**
 # Also ignore reftest - specially crafted to produce expected output.
 **/reftest/**
 **/reftests/**
 
 # Exclude expected objdirs.
 obj*/**
 
-# We currently have no js files in these directories, so we ignore them by
-# default to aid ESLint's performance.
-build/**
-config/**
-db/**
-embedding/**
-gradle/**
-hal/**
-mfbt/**
-mozglue/**
-nsprpub/**
-other-licenses/**
-xpfe/**
+# dom/ exclusions which should be removed (aka ESLint enabled)
+dom/animation/**
+dom/base/*.*
+dom/base/test/*.*
+dom/base/test/unit/test_serializers_entities*.js
+dom/base/test/unit_ipc/**
+dom/base/test/jsmodules/**
+dom/canvas/**
+dom/encoding/**
+dom/events/**
+dom/fetch/**
+dom/file/**
+dom/flex/**
+dom/grid/**
+dom/html/**
+dom/jsurl/**
+dom/media/test/**
+!dom/media/test/marionette/yttest/*.js
+dom/media/tests/**
+dom/media/webaudio/**
+dom/media/webspeech/**
+dom/messagechannel/**
+dom/midi/**
+dom/network/**
+dom/payments/**
+dom/performance/**
+dom/permission/**
+dom/promise/**
+dom/quota/**
+dom/security/test/cors/**
+dom/security/test/csp/**
+dom/security/test/general/**
+dom/security/test/mixedcontentblocker/**
+dom/security/test/sri/**
+dom/serviceworkers/**
+dom/smil/**
+dom/tests/mochitest/**
+dom/u2f/**
+dom/vr/**
+dom/webauthn/**
+dom/webgpu/**
+dom/websocket/**
+dom/workers/**
+dom/worklet/**
+dom/xbl/**
+dom/xhr/**
+dom/xml/**
+dom/xslt/**
+dom/xul/**
 
-# These directories only contain crashtests, but we still skip the whole
-# directory to aid performance.
-view/**
+# build/ third-party code
+build/pgo/js-input/**
 
 # browser/ exclusions
 browser/app/**
 browser/branding/**/firefox-branding.js
 # Gzipped test file.
 browser/base/content/test/general/gZipOfflineChild.html
 browser/base/content/test/urlbar/file_blank_but_not_blank.html
 # Third-party code.
@@ -171,67 +206,16 @@ devtools/client/webconsole/test/mochites
 devtools/client/webconsole/test/mochitest/code_bundle_invalidmap.js
 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
 devtools/server/tests/unit/setBreakpoint*
 devtools/server/tests/unit/sourcemapped.js
 
 # devtools specific format test file
 devtools/server/tests/unit/xpcshell_debugging_script.js
 
-# dom/ exclusions which should be removed (aka ESLint enabled)
-dom/animation/**
-dom/base/*.*
-dom/base/test/*.*
-dom/base/test/unit/test_serializers_entities*.js
-dom/base/test/unit_ipc/**
-dom/base/test/jsmodules/**
-dom/canvas/**
-dom/encoding/**
-dom/events/**
-dom/fetch/**
-dom/file/**
-dom/flex/**
-dom/grid/**
-dom/html/**
-dom/jsurl/**
-dom/media/test/**
-!dom/media/test/marionette/yttest/*.js
-dom/media/tests/**
-dom/media/webaudio/**
-dom/media/webspeech/**
-dom/messagechannel/**
-dom/midi/**
-dom/network/**
-dom/payments/**
-dom/performance/**
-dom/permission/**
-dom/promise/**
-dom/quota/**
-dom/security/test/cors/**
-dom/security/test/csp/**
-dom/security/test/general/**
-dom/security/test/mixedcontentblocker/**
-dom/security/test/sri/**
-dom/serviceworkers/**
-dom/smil/**
-dom/tests/html/**
-dom/tests/mochitest/**
-dom/u2f/**
-dom/vr/**
-dom/webauthn/**
-dom/webgpu/**
-dom/websocket/**
-dom/workers/**
-dom/worklet/**
-dom/xbl/**
-dom/xhr/**
-dom/xml/**
-dom/xslt/**
-dom/xul/**
-
 # Third-party
 dom/canvas/test/webgl-conf/**
 dom/imptests/**
 dom/media/webaudio/test/blink/**
 dom/media/webvtt/**
 dom/svg/test/test_nonAnimStrings.xhtml
 dom/svg/test/test_SVG_namespace_ids.html
 
--- a/build/pgo/index.html
+++ b/build/pgo/index.html
@@ -1,14 +1,16 @@
 <script>
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
- var list = 
+/* global Quitter */
+
+ var list =
      [
   "js-input/webkit/PerformanceTests/Speedometer/index.html",
   "blueprint/sample.html",
   "blueprint/forms.html",
   "blueprint/grid.html",
   "blueprint/elements.html",
   "js-input/3d-thingy.html",
   "js-input/crypto-otp.html",
@@ -32,38 +34,39 @@
   "js-input/sunspider/math-cordic.html",
   "js-input/sunspider/math-partial-sums.html",
   "js-input/sunspider/math-spectral-norm.html",
   "js-input/sunspider/regexp-dna.html",
   "js-input/sunspider/string-base64.html",
   "js-input/sunspider/string-fasta.html",
   "js-input/sunspider/string-tagcloud.html",
   "js-input/sunspider/string-unpack-code.html",
-  "js-input/sunspider/string-validate-input.html"
+  "js-input/sunspider/string-validate-input.html",
      ];
  var defaultInterval = 2000;
  var idx = 0;
  var w;
- 
- window.onload = function () {
+
+ window.onload = function() {
      w = window.open("about:blank");
      window.setTimeout(loadURL, defaultInterval);
  };
- function loadURL () {
+ function loadURL() {
      var interval = defaultInterval;
      if (idx == 0) {
          interval = 90000;
      }
      w.close();
      w = window.open(list[idx++]);
      if (idx < list.length) {
      window.setTimeout(loadURL, interval);
      } else {
          window.setTimeout(Quitter.quit, interval);
      }
  }
  var i;
- 
- for(i=0; i < list.length;i++) {
+
+ for (i = 0; i < list.length;i++) {
+     // eslint-disable-next-line no-unsanitized/method
      document.write(list[i]);
      document.write("<br>");
  }
   </script>