Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs
authorMark Banner <standard8@mozilla.com>
Wed, 21 Nov 2018 14:27:27 +0000
changeset 503902 85c1c4e2b17e12286b897a59c9e2f1727b2bac3c
parent 503901 c9dfaa111bccdd127209ef5d1bf366de314f5e80
child 503903 12cd6bf51cdeafb596082068b7c925a844b37a83
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1508980
milestone65.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 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D12529
.eslintignore
dom/base/test/unit/.eslintrc.js
dom/base/test/unit_ipc/.eslintrc.js
dom/file/tests/.eslintrc.js
dom/filesystem/tests/.eslintrc.js
dom/flex/test/.eslintrc.js
dom/grid/test/.eslintrc.js
dom/html/test/.eslintrc.js
dom/html/test/forms/.eslintrc.js
dom/ipc/tests/.eslintrc.js
dom/jsurl/test/.eslintrc.js
dom/manifest/test/.eslintrc.js
dom/notification/test/browser/.eslintrc.js
dom/notification/test/chrome/.eslintrc.js
dom/notification/test/mochitest/.eslintrc.js
dom/plugins/test/mochitest/.eslintrc.js
dom/svg/test/.eslintrc.js
dom/system/tests/.eslintrc.js
dom/tests/browser/.eslintrc.js
--- a/.eslintignore
+++ b/.eslintignore
@@ -179,85 +179,72 @@ dom/cache/test/mochitest/**
 dom/cache/test/xpcshell/**
 dom/canvas/**
 dom/console/**
 dom/crypto/**
 dom/encoding/**
 dom/events/**
 dom/fetch/**
 dom/file/**
-dom/filehandle/**
 dom/filesystem/**
 dom/flex/**
-dom/gamepad/**
-dom/geolocation/**
 dom/grid/**
 dom/html/**
-dom/imptests/**
-dom/interfaces/**
 dom/ipc/**
 dom/jsurl/**
-dom/locales/**
 dom/manifest/**
-dom/mathml/**
 dom/media/test/**
 dom/media/tests/**
 dom/media/webaudio/**
 dom/media/webspeech/**
 dom/messagechannel/**
 dom/midi/**
 dom/network/**
 dom/notification/Notification*.*
 dom/notification/test/browser/**
 dom/notification/test/mochitest/**
-dom/offline/**
 dom/payments/**
 dom/performance/**
 dom/permission/**
 dom/plugins/test/mochitest/**
 dom/plugins/test/unit/**
-dom/power/**
 dom/promise/**
 dom/push/**
 dom/quota/**
-dom/res/**
 dom/security/test/cors/**
 dom/security/test/csp/**
 dom/security/test/general/**
 dom/security/test/mixedcontentblocker/**
 dom/security/test/sri/**
 dom/security/test/unit/**
 dom/serviceworkers/**
 dom/smil/**
-dom/storage/**
 dom/svg/**
 dom/system/**
 dom/tests/browser/**
 dom/tests/html/**
-dom/tests/js/**
 dom/tests/mochitest/**
 dom/tests/unit/**
 dom/u2f/**
 dom/url/**
 dom/vr/**
 dom/webauthn/**
-dom/webbrowserpersist/**
 dom/webgpu/**
-dom/webidl/**
 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/webvtt/**
 
 # Third-party
 editor/libeditor/tests/browserscope/**
 
 # Third-party
 gfx/ots/**
 gfx/skia/**
new file mode 100644
--- /dev/null
+++ b/dom/base/test/unit/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/xpcshell-test",
+  ],
+};
new file mode 100644
--- /dev/null
+++ b/dom/base/test/unit_ipc/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/xpcshell-test",
+  ],
+};
new file mode 100644
--- /dev/null
+++ b/dom/file/tests/.eslintrc.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/mochitest-test",
+    "plugin:mozilla/xpcshell-test"
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/filesystem/tests/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/flex/test/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/chrome-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/grid/test/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/chrome-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/html/test/.eslintrc.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/browser-test",
+    "plugin:mozilla/chrome-test",
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/html/test/forms/.eslintrc.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/chrome-test",
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/ipc/tests/.eslintrc.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/browser-test",
+    "plugin:mozilla/mochitest-test",
+    "plugin:mozilla/xpcshell-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/jsurl/test/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/manifest/test/.eslintrc.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/browser-test",
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/notification/test/browser/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/browser-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/notification/test/chrome/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/chrome-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/notification/test/mochitest/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/plugins/test/mochitest/.eslintrc.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/browser-test",
+    "plugin:mozilla/chrome-test",
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/svg/test/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/system/tests/.eslintrc.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/chrome-test",
+    "plugin:mozilla/mochitest-test",
+  ]
+};
new file mode 100644
--- /dev/null
+++ b/dom/tests/browser/.eslintrc.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = {
+  "extends": [
+    "plugin:mozilla/browser-test",
+  ]
+};