Bug 1555300 - .eslintignore no longer needs to ignore directories with no js files. r=mossop

Differential Revision: https://phabricator.services.mozilla.com/D32993

--HG--
extra : source : 0d2958471c0885b7acdfbeba557b109f1b403da4
This commit is contained in:
Mark Banner 2019-05-31 08:49:17 +00:00
parent da33717f34
commit b7e2ea03ab
2 changed files with 61 additions and 74 deletions

View file

@ -11,23 +11,58 @@
# Exclude expected objdirs. # Exclude expected objdirs.
obj*/** obj*/**
# We currently have no js files in these directories, so we ignore them by # dom/ exclusions which should be removed (aka ESLint enabled)
# default to aid ESLint's performance. dom/animation/**
build/** dom/base/*.*
config/** dom/base/test/*.*
db/** dom/base/test/unit/test_serializers_entities*.js
embedding/** dom/base/test/unit_ipc/**
gradle/** dom/base/test/jsmodules/**
hal/** dom/canvas/**
mfbt/** dom/encoding/**
mozglue/** dom/events/**
nsprpub/** dom/fetch/**
other-licenses/** dom/file/**
xpfe/** 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 # build/ third-party code
# directory to aid performance. build/pgo/js-input/**
view/**
# browser/ exclusions # browser/ exclusions
browser/app/** browser/app/**
@ -176,57 +211,6 @@ devtools/server/tests/unit/sourcemapped.js
# devtools specific format test file # devtools specific format test file
devtools/server/tests/unit/xpcshell_debugging_script.js 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 # Third-party
dom/canvas/test/webgl-conf/** dom/canvas/test/webgl-conf/**
dom/imptests/** dom/imptests/**

View file

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* global Quitter */
var list = var list =
[ [
"js-input/webkit/PerformanceTests/Speedometer/index.html", "js-input/webkit/PerformanceTests/Speedometer/index.html",
@ -37,17 +39,17 @@
"js-input/sunspider/string-fasta.html", "js-input/sunspider/string-fasta.html",
"js-input/sunspider/string-tagcloud.html", "js-input/sunspider/string-tagcloud.html",
"js-input/sunspider/string-unpack-code.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 defaultInterval = 2000;
var idx = 0; var idx = 0;
var w; var w;
window.onload = function () { window.onload = function() {
w = window.open("about:blank"); w = window.open("about:blank");
window.setTimeout(loadURL, defaultInterval); window.setTimeout(loadURL, defaultInterval);
}; };
function loadURL () { function loadURL() {
var interval = defaultInterval; var interval = defaultInterval;
if (idx == 0) { if (idx == 0) {
interval = 90000; interval = 90000;
@ -62,7 +64,8 @@
} }
var i; 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(list[i]);
document.write("<br>"); document.write("<br>");
} }