allowed underscore prefixed unused var

This commit is contained in:
hina
2020-06-06 18:40:49 +09:00
parent b909035fe8
commit 2693d340c6
4 changed files with 6 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ $(() => {
$deleteCheckinModal.modal('show', this);
});
$(document).on('click', '[data-href]', function (event) {
$(document).on('click', '[data-href]', function (_event) {
location.href = $(this).data('href');
});
@@ -97,7 +97,7 @@ $(() => {
}
});
$(document).on('click', '.card-spoiler-overlay', function (event) {
$(document).on('click', '.card-spoiler-overlay', function (_event) {
const $this = $(this);
$this.siblings('.card-link').removeClass('card-spoiler');
$this.remove();

View File

@@ -59,7 +59,7 @@ new Vue({
this.metadata = data;
this.metadataLoadState = MetadataLoadState.Success;
})
.catch((e) => {
.catch((_e) => {
this.metadata = null;
this.metadataLoadState = MetadataLoadState.Failed;
});

View File

@@ -65,7 +65,7 @@
modal.data('id', target.data('id'));
})
.find('.btn-danger')
.on('click', function (event) {
.on('click', function (_event) {
const modal = $('#deleteCheckinModal');
const form = modal.find('form');
form.attr('action', form.attr('action')?.replace('@', modal.data('id')) || null);