From b1c872942cc880effea9367fbdef6b288330777e Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Wed, 21 Nov 2018 14:27:27 +0000 Subject: [PATCH] Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D12529 --HG-- extra : moz-landing-system : lando --- .eslintignore | 15 +-------------- dom/base/test/unit/.eslintrc.js | 7 +++++++ dom/base/test/unit_ipc/.eslintrc.js | 7 +++++++ dom/file/tests/.eslintrc.js | 8 ++++++++ dom/filesystem/tests/.eslintrc.js | 7 +++++++ dom/flex/test/.eslintrc.js | 7 +++++++ dom/grid/test/.eslintrc.js | 7 +++++++ dom/html/test/.eslintrc.js | 9 +++++++++ dom/html/test/forms/.eslintrc.js | 8 ++++++++ dom/ipc/tests/.eslintrc.js | 9 +++++++++ dom/jsurl/test/.eslintrc.js | 7 +++++++ dom/manifest/test/.eslintrc.js | 8 ++++++++ dom/notification/test/browser/.eslintrc.js | 7 +++++++ dom/notification/test/chrome/.eslintrc.js | 7 +++++++ dom/notification/test/mochitest/.eslintrc.js | 7 +++++++ dom/plugins/test/mochitest/.eslintrc.js | 9 +++++++++ dom/svg/test/.eslintrc.js | 7 +++++++ dom/system/tests/.eslintrc.js | 8 ++++++++ dom/tests/browser/.eslintrc.js | 7 +++++++ 19 files changed, 137 insertions(+), 14 deletions(-) create mode 100644 dom/base/test/unit/.eslintrc.js create mode 100644 dom/base/test/unit_ipc/.eslintrc.js create mode 100644 dom/file/tests/.eslintrc.js create mode 100644 dom/filesystem/tests/.eslintrc.js create mode 100644 dom/flex/test/.eslintrc.js create mode 100644 dom/grid/test/.eslintrc.js create mode 100644 dom/html/test/.eslintrc.js create mode 100644 dom/html/test/forms/.eslintrc.js create mode 100644 dom/ipc/tests/.eslintrc.js create mode 100644 dom/jsurl/test/.eslintrc.js create mode 100644 dom/manifest/test/.eslintrc.js create mode 100644 dom/notification/test/browser/.eslintrc.js create mode 100644 dom/notification/test/chrome/.eslintrc.js create mode 100644 dom/notification/test/mochitest/.eslintrc.js create mode 100644 dom/plugins/test/mochitest/.eslintrc.js create mode 100644 dom/svg/test/.eslintrc.js create mode 100644 dom/system/tests/.eslintrc.js create mode 100644 dom/tests/browser/.eslintrc.js diff --git a/.eslintignore b/.eslintignore index 3666cb7fa3ae..2646b15b6ca3 100644 --- a/.eslintignore +++ b/.eslintignore @@ -184,20 +184,13 @@ 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/** @@ -208,17 +201,14 @@ 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/** @@ -227,21 +217,17 @@ 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/** @@ -253,6 +239,7 @@ dom/xul/** # Third-party dom/canvas/test/webgl-conf/** +dom/imptests/** dom/media/webvtt/** # Third-party diff --git a/dom/base/test/unit/.eslintrc.js b/dom/base/test/unit/.eslintrc.js new file mode 100644 index 000000000000..58f8bd73ee48 --- /dev/null +++ b/dom/base/test/unit/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/xpcshell-test", + ], +}; diff --git a/dom/base/test/unit_ipc/.eslintrc.js b/dom/base/test/unit_ipc/.eslintrc.js new file mode 100644 index 000000000000..58f8bd73ee48 --- /dev/null +++ b/dom/base/test/unit_ipc/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/xpcshell-test", + ], +}; diff --git a/dom/file/tests/.eslintrc.js b/dom/file/tests/.eslintrc.js new file mode 100644 index 000000000000..336572327acf --- /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" + ] +}; diff --git a/dom/filesystem/tests/.eslintrc.js b/dom/filesystem/tests/.eslintrc.js new file mode 100644 index 000000000000..407338aa6910 --- /dev/null +++ b/dom/filesystem/tests/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/mochitest-test", + ] +}; diff --git a/dom/flex/test/.eslintrc.js b/dom/flex/test/.eslintrc.js new file mode 100644 index 000000000000..0bb0fe72c247 --- /dev/null +++ b/dom/flex/test/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/chrome-test", + ] +}; diff --git a/dom/grid/test/.eslintrc.js b/dom/grid/test/.eslintrc.js new file mode 100644 index 000000000000..0bb0fe72c247 --- /dev/null +++ b/dom/grid/test/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/chrome-test", + ] +}; diff --git a/dom/html/test/.eslintrc.js b/dom/html/test/.eslintrc.js new file mode 100644 index 000000000000..5080febb6aeb --- /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", + ] +}; diff --git a/dom/html/test/forms/.eslintrc.js b/dom/html/test/forms/.eslintrc.js new file mode 100644 index 000000000000..72e9f47221b8 --- /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", + ] +}; diff --git a/dom/ipc/tests/.eslintrc.js b/dom/ipc/tests/.eslintrc.js new file mode 100644 index 000000000000..a30ccc29be66 --- /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", + ] +}; diff --git a/dom/jsurl/test/.eslintrc.js b/dom/jsurl/test/.eslintrc.js new file mode 100644 index 000000000000..407338aa6910 --- /dev/null +++ b/dom/jsurl/test/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/mochitest-test", + ] +}; diff --git a/dom/manifest/test/.eslintrc.js b/dom/manifest/test/.eslintrc.js new file mode 100644 index 000000000000..6746617eebd0 --- /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", + ] +}; diff --git a/dom/notification/test/browser/.eslintrc.js b/dom/notification/test/browser/.eslintrc.js new file mode 100644 index 000000000000..58a15b48622a --- /dev/null +++ b/dom/notification/test/browser/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/browser-test", + ] +}; diff --git a/dom/notification/test/chrome/.eslintrc.js b/dom/notification/test/chrome/.eslintrc.js new file mode 100644 index 000000000000..0bb0fe72c247 --- /dev/null +++ b/dom/notification/test/chrome/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/chrome-test", + ] +}; diff --git a/dom/notification/test/mochitest/.eslintrc.js b/dom/notification/test/mochitest/.eslintrc.js new file mode 100644 index 000000000000..407338aa6910 --- /dev/null +++ b/dom/notification/test/mochitest/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/mochitest-test", + ] +}; diff --git a/dom/plugins/test/mochitest/.eslintrc.js b/dom/plugins/test/mochitest/.eslintrc.js new file mode 100644 index 000000000000..5080febb6aeb --- /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", + ] +}; diff --git a/dom/svg/test/.eslintrc.js b/dom/svg/test/.eslintrc.js new file mode 100644 index 000000000000..407338aa6910 --- /dev/null +++ b/dom/svg/test/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/mochitest-test", + ] +}; diff --git a/dom/system/tests/.eslintrc.js b/dom/system/tests/.eslintrc.js new file mode 100644 index 000000000000..72e9f47221b8 --- /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", + ] +}; diff --git a/dom/tests/browser/.eslintrc.js b/dom/tests/browser/.eslintrc.js new file mode 100644 index 000000000000..58a15b48622a --- /dev/null +++ b/dom/tests/browser/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "plugin:mozilla/browser-test", + ] +};