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 2c62e9f commit af37302
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/userscript/source/ui/CraftSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export class CraftSettingsUi extends SettingsSectionUi<CraftSettings> {
(!resource.stock && resource.consume === this._host.options.consume) ||
resource.consume === undefined
) {
$("#resource-" + name).remove();
$(`#resource-${name}`).remove();
}
}
});
Expand Down
10 changes: 5 additions & 5 deletions packages/userscript/source/ui/DistributeSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class DistributeSettingsUi extends SettingsSectionUi<DistributeSettings>
label.on("click", () => this._itemsButton.trigger("click"));

const input = $("<input/>", {
id: "toggle-" + toggleName,
id: `toggle-${toggleName}`,
type: "checkbox",
});
this._options.$enabled = input;
Expand Down Expand Up @@ -61,7 +61,7 @@ export class DistributeSettingsUi extends SettingsSectionUi<DistributeSettings>
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 @@ -145,12 +145,12 @@ export class DistributeSettingsUi extends SettingsSectionUi<DistributeSettings>

//Limited Distribution
const labelElement = $("<label/>", {
for: "toggle-limited-" + name,
for: `toggle-limited-${name}`,
text: this._host.i18n("ui.limit"),
});

const input = $("<input/>", {
id: "toggle-limited-" + name,
id: `toggle-limited-${name}`,
type: "checkbox",
}).data("option", option);
option.$limited = input;
Expand All @@ -176,7 +176,7 @@ export class DistributeSettingsUi extends SettingsSectionUi<DistributeSettings>
element.append(input, labelElement);

const maxButton = $("<div/>", {
id: "set-" + name + "-max",
id: `set-${name}-max`,
text: this._host.i18n("ui.max", [option.max]),
//title: option.max,
css: {
Expand Down
6 changes: 3 additions & 3 deletions packages/userscript/source/ui/FilterSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export class FiltersSettingsUi extends SettingsSectionUi<FilterSettings> {
const itext = ucfirst(this._host.i18n("ui.filter"));

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

const label = $("<label/>", {
text: itext,
});
label.on("click", () => this._itemsButton.trigger("click"));

const input = $("<input/>", {
id: "toggle-" + toggleName,
id: `toggle-${toggleName}`,
type: "checkbox",
});
this._options.$enabled = input;
Expand Down Expand Up @@ -61,7 +61,7 @@ export class FiltersSettingsUi extends SettingsSectionUi<FilterSettings> {
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
8 changes: 4 additions & 4 deletions packages/userscript/source/ui/OptionsSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export class OptionsSettingsUi extends SettingsSectionUi<OptionsSettings> {
const itext = ucfirst(this._host.i18n("ui.options"));

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

const label = $("<label/>", {
text: itext,
});
label.on("click", () => this._itemsButton.trigger("click"));

const input = $("<input/>", {
id: "toggle-" + toggleName,
id: `toggle-${toggleName}`,
type: "checkbox",
});
this._options.$enabled = input;
Expand Down Expand Up @@ -61,7 +61,7 @@ export class OptionsSettingsUi extends SettingsSectionUi<OptionsSettings> {
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 @@ -168,7 +168,7 @@ export class OptionsSettingsUi extends SettingsSectionUi<OptionsSettings> {

if (option.subTrigger !== undefined) {
const triggerButton = $("<div/>", {
id: "set-" + name + "-subTrigger",
id: `set-${name}-subTrigger`,
text: this._host.i18n("ui.trigger"),
//title: option.subTrigger,
css: {
Expand Down

0 comments on commit af37302

Please sign in to comment.