Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
style: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 17, 2021
1 parent 21948c5 commit 3204a31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/userscript/source/ui/ReligionSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export class ReligionSettingsUi extends SettingsSectionUi<ReligionSettings> {
const itext = ucfirst(this._host.i18n("ui.faith"));

// Our main element is a list item.
const element = $("<li/>", { id: "ks-" + toggleName });
const element = $("<li/>", { id: `ks-${toggleName}` });

const label = $("<label/>", {
for: "toggle-" + toggleName,
for: `toggle-${toggleName}`,
text: itext,
});

const input = $("<input/>", {
id: "toggle-" + toggleName,
id: `toggle-${toggleName}`,
type: "checkbox",
});
this._options.$enabled = input;
Expand All @@ -57,7 +57,7 @@ export class ReligionSettingsUi extends SettingsSectionUi<ReligionSettings> {

// Create "trigger" button in the item.
this._triggerButton = $("<div/>", {
id: "trigger-" + toggleName,
id: `trigger-${toggleName}`,
text: this._host.i18n("ui.trigger"),
//title: this._options.trigger,
css: {
Expand Down Expand Up @@ -91,7 +91,7 @@ export class ReligionSettingsUi extends SettingsSectionUi<ReligionSettings> {
element.css("borderBottom", "1px solid rgba(185, 185, 185, 0.7)");

this._itemsButton = $("<div/>", {
id: "toggle-items-" + toggleName,
id: `toggle-items-${toggleName}`,
text: "+",
css: {
cursor: "pointer",
Expand Down Expand Up @@ -462,7 +462,7 @@ export class ReligionSettingsUi extends SettingsSectionUi<ReligionSettings> {
}

// This seems wrong to do here.
const building = $("#toggle-" + unicornName);
const building = $(`#toggle-${unicornName}`);
building.prop("checked", true);
building.trigger("change");
}
Expand Down

0 comments on commit 3204a31

Please sign in to comment.