Bug 1549166 - Use centralized ESLint configuration for chat tests. r=darktrojan
authorPatrick Cloke <clokep@gmail.com>
Mon, 20 May 2019 13:29:08 -0400
changeset 35649 9efee8d57a4c2cb70d746fb1239a808795d83c87
parent 35648 7566abd1aa2cd2e6cd147ffb784851d777b924e9
child 35650 ac1f260073e5ef47212ab252cb662d7328c1949d
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersdarktrojan
bugs1549166
Bug 1549166 - Use centralized ESLint configuration for chat tests. r=darktrojan
.eslintrc.js
chat/components/src/test/.eslintrc.js
chat/modules/test/.eslintrc.js
chat/protocols/irc/test/.eslintrc.js
chat/protocols/skype/test/.eslintrc.js
chat/protocols/xmpp/test/.eslintrc.js
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -11,16 +11,17 @@ function removeOverrides(config) {
   config = {...config};
   delete config.overrides;
   return config;
 }
 
 const xpcshellTestPaths = [
   "**/test*/unit*/",
   "**/test*/xpcshell/",
+  "chat/**/test*/",
 ];
 
 const browserTestPaths = [
   "**/test*/**/browser/",
 ];
 
 module.exports = {
   "root": true,
deleted file mode 100644
--- a/chat/components/src/test/.eslintrc.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-module.exports = {
-  "extends": "plugin:mozilla/xpcshell-test",
-
-  "rules": {
-    "func-names": "off",
-    "mozilla/import-headjs-globals": "error",
-    "no-unused-vars": ["error", {
-      "args": "none",
-      "vars": "all",
-    }],
-  },
-};
deleted file mode 100644
--- a/chat/modules/test/.eslintrc.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-module.exports = {
-  "extends": "plugin:mozilla/xpcshell-test",
-
-  "rules": {
-    "func-names": "off",
-    "mozilla/import-headjs-globals": "error",
-    "no-unused-vars": ["error", {
-      "args": "none",
-      "vars": "all",
-    }],
-  },
-};
deleted file mode 100644
--- a/chat/protocols/irc/test/.eslintrc.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-module.exports = {
-  "extends": "plugin:mozilla/xpcshell-test",
-
-  "rules": {
-    "func-names": "off",
-    "mozilla/import-headjs-globals": "error",
-    "no-unused-vars": ["error", {
-      "args": "none",
-      "vars": "all",
-    }],
-  },
-};
deleted file mode 100644
--- a/chat/protocols/skype/test/.eslintrc.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-module.exports = {
-  "extends": "plugin:mozilla/xpcshell-test",
-
-  "rules": {
-    "func-names": "off",
-    "mozilla/import-headjs-globals": "error",
-    "no-unused-vars": ["error", {
-      "args": "none",
-      "vars": "all",
-    }],
-  },
-};
deleted file mode 100644
--- a/chat/protocols/xmpp/test/.eslintrc.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-module.exports = {
-  "extends": "plugin:mozilla/xpcshell-test",
-
-  "rules": {
-    "func-names": "off",
-    "mozilla/import-headjs-globals": "error",
-    "no-unused-vars": ["error", {
-      "args": "none",
-      "vars": "all",
-    }],
-  },
-};