No bug - Disable ESLint plugin "prettier" for now; rs=bustage-fix DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 10 Jun 2019 14:17:18 +1200
changeset 35816 e73ec57351765daf1d9e629afc07e7dc54b07018
parent 35815 97712b1f5c4be2d92e565e283727c5fec1564b4b
child 35817 3b41b90ba85ae21731f12162d7769460523245ff
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbustage-fix
No bug - Disable ESLint plugin "prettier" for now; rs=bustage-fix DONTBUILD Also, fix a linting error that emerged while linting was broken
.eslintrc.js
calendar/base/content/widgets/calendar-subscriptions-list.js
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -43,16 +43,17 @@ module.exports = {
       exceptions: {
         "ArrayExpression": true,
         "AssignmentExpression": true,
         "ObjectExpression": true,
         "VariableDeclarator": true,
       },
       ignoreEOLComments: true,
     }],
+    "prettier/prettier": "off",
     "semi-spacing": ["error", {"before": false, "after": true}],
     "space-in-parens": ["error", "never"],
   },
 
   // The html plugin is enabled via a command line option on eslint. To avoid
   // bad interactions with the xml preprocessor in eslint-plugin-mozilla, we
   // turn off processing of the html plugin for .xml files.
   "settings": {
--- a/calendar/base/content/widgets/calendar-subscriptions-list.js
+++ b/calendar/base/content/widgets/calendar-subscriptions-list.js
@@ -87,10 +87,10 @@
         setCalendar(aCalendar) {
             this.mCalendar = aCalendar;
             let label = this.querySelector(".subscription-name");
             label.setAttribute("value", aCalendar.name);
         }
     }
 
     customElements.define("calendar-subscriptions-richlistitem", MozCalendarSubscriptionsRichlistitem,
-        { extends: "richlistitem" });
+        { "extends": "richlistitem" });
 }