Skip to content

A platform for community discussion. Free, open, simple.

Make the linter happy

Daniel Waterworthd025e188e8e8
diff --git a/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6 b/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6
index a48899f186f..114ff29b4e8 100644
--- a/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6
+++ b/app/assets/javascripts/discourse/widgets/default-notification-item.js.es6
@@ -85,11 +85,11 @@ export const DefaultNotificationItem =
return I18n.t(`notifications.${notificationName}`, { description, username });
},
- icon(notificationName, data) {
+ icon(notificationName) {
return iconNode(`notification.${notificationName}`);
},
- title(notificationName, data) {
+ title(notificationName) {
if (notificationName) {
return I18n.t(`notifications.titles.${notificationName}`);
} else {
diff --git a/app/assets/javascripts/discourse/widgets/invitee-accepted-notification-item.js.es6 b/app/assets/javascripts/discourse/widgets/invitee-accepted-notification-item.js.es6
index 7d2c5e64a9f..b88d1686998 100644
--- a/app/assets/javascripts/discourse/widgets/invitee-accepted-notification-item.js.es6
+++ b/app/assets/javascripts/discourse/widgets/invitee-accepted-notification-item.js.es6
@@ -1,6 +1,5 @@
import { createWidgetFrom } from "discourse/widgets/widget";
import { DefaultNotificationItem } from "discourse/widgets/default-notification-item";
-import { postUrl } from "discourse/lib/utilities";
import { userPath } from "discourse/lib/url";
createWidgetFrom(DefaultNotificationItem, "invitee-accepted-notification-item", {
diff --git a/app/assets/javascripts/discourse/widgets/user-notifications.js.es6 b/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
index ce110081dab..e487b6e8f81 100644
--- a/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
+++ b/app/assets/javascripts/discourse/widgets/user-notifications.js.es6
@@ -89,17 +89,17 @@ export default createWidget("user-notifications", {
result.push(h("div.spinner-container", h("div.spinner")));
} else if (state.notifications.length) {
const notificationItems =
- state.notifications.map(attrs => {
+ state.notifications.map(notificationAttrs => {
const notificationName =
- this.site.notificationLookup[attrs.notification_type];
+ this.site.notificationLookup[notificationAttrs.notification_type];
const widgetNames = [
`${notificationName.replace(/_/g, '-')}-notification-item`,
"default-notification-item"
];
- return this.attach(widgetNames, attrs);
+ return this.attach(widgetNames, notificationAttrs);
});
result.push(h("hr"));