Bug 1421458 - Add more initial configuration setup and prepare .eslintignore for enabling ESLint on more xpcshell-test directories. r=mossop

MozReview-Commit-ID: 4nbTuNNnAdZ

--HG--
extra : rebase_source : 7131f0ddad79d28615a5799c657972bd84a69180
This commit is contained in:
Mark Banner 2017-11-28 22:57:08 +00:00
parent 46aa852d2c
commit 099e4fa549
14 changed files with 144 additions and 12 deletions

View file

@ -4,6 +4,8 @@
# Always ignore crashtests - specially crafted files that originally caused a # Always ignore crashtests - specially crafted files that originally caused a
# crash. # crash.
**/crashtests/** **/crashtests/**
# Also ignore reftest - specially crafted to produce expected output.
**/reftest/**
# Exclude expected objdirs. # Exclude expected objdirs.
obj*/** obj*/**
@ -16,19 +18,33 @@ editor/**
extensions/cookie/** extensions/cookie/**
extensions/spellcheck/** extensions/spellcheck/**
extensions/universalchardet/** extensions/universalchardet/**
gfx/** gfx/layers/**
gfx/tests/browser/**
gfx/tests/chrome/**
gfx/tests/mochitest/**
gfx/tests/unit/**
image/** image/**
intl/** intl/**
layout/** layout/**
media/** memory/replace/dmd/test/**
memory/**
modules/** modules/**
netwerk/** netwerk/base/NetUtil.jsm
netwerk/cookie/test/browser/**
netwerk/cookie/test/unit/**
netwerk/protocol/**
netwerk/dns/**
netwerk/test/browser/**
netwerk/test/httpserver/**
netwerk/test/mochitests/**
netwerk/test/unit*/**
netwerk/wifi/**
parser/** parser/**
rdf/** rdf/**
tools/update-packaging/** tools/update-packaging/**
uriloader/** uriloader/exthandler/**
widget/** uriloader/exthandler/tests/mochitest/**
widget/headless/tests/**
widget/tests/**
# We currently have no js files in these directories, so we ignore them by # We currently have no js files in these directories, so we ignore them by
# default to aid ESLint's performance. # default to aid ESLint's performance.
@ -191,7 +207,8 @@ dom/battery/**
dom/bindings/** dom/bindings/**
dom/broadcastchannel/** dom/broadcastchannel/**
dom/browser-element/** dom/browser-element/**
dom/cache/** dom/cache/test/mochitest/**
dom/cache/test/xpcshell/**
dom/canvas/** dom/canvas/**
dom/commandhandler/** dom/commandhandler/**
dom/console/** dom/console/**
@ -220,25 +237,42 @@ dom/media/**
!dom/media/*.js* !dom/media/*.js*
dom/messagechannel/** dom/messagechannel/**
dom/network/** dom/network/**
dom/notification/** dom/notification/Notification*.*
dom/notification/test/browser/**
dom/notification/test/unit/**
dom/offline/** dom/offline/**
dom/payments/** dom/payments/**
dom/performance/** dom/performance/**
dom/permission/** dom/permission/**
dom/plugins/** dom/plugins/test/mochitest/**
dom/plugins/test/unit/**
dom/power/** dom/power/**
dom/presentation/** dom/presentation/Presentation*.js
dom/presentation/provider/**
dom/presentation/tests/mochitest/**
dom/presentation/tests/xpcshell/**
dom/promise/** dom/promise/**
dom/push/** dom/push/**
dom/quota/** dom/quota/**
dom/res/** dom/res/**
dom/secureelement/** dom/secureelement/**
dom/security/** dom/security/test/contentverifier/**
dom/security/test/cors/**
dom/security/test/csp/**
dom/security/test/general/**
dom/security/test/hsts/**
dom/security/test/mixedcontentblocker/**
dom/security/test/sri/**
dom/security/test/unit/**
dom/smil/** dom/smil/**
dom/storage/** dom/storage/**
dom/svg/** dom/svg/**
dom/system/** dom/system/**
dom/tests/** dom/tests/browser/**
dom/tests/html/**
dom/tests/js/**
dom/tests/mochitest/**
dom/tests/unit/**
dom/time/** dom/time/**
dom/u2f/** dom/u2f/**
dom/url/** dom/url/**
@ -258,6 +292,10 @@ dom/xul/**
# Third-party # Third-party
dom/media/webvtt/** dom/media/webvtt/**
# Third-party
gfx/ots/**
gfx/skia/**
# Exclude everything but self-hosted JS # Exclude everything but self-hosted JS
js/ductwork/** js/ductwork/**
js/examples/** js/examples/**
@ -270,6 +308,9 @@ js/src/jit-test/**
js/src/tests/** js/src/tests/**
js/src/Y.js js/src/Y.js
# Third-party
media/webrtc/trunk/**
# mobile/android/ exclusions # mobile/android/ exclusions
mobile/android/tests/browser/chrome/tp5/** mobile/android/tests/browser/chrome/tp5/**

7
dom/cache/test/xpcshell/.eslintrc.js vendored Normal file
View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};

View file

@ -0,0 +1,7 @@
"use strict";
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
]
};