allowed underscore prefixed unused var

This commit is contained in:
hina 2020-06-06 18:40:49 +09:00
parent b909035fe8
commit 2693d340c6
No known key found for this signature in database
GPG Key ID: B666B2A137443F76
4 changed files with 6 additions and 4 deletions

2
.eslintrc.js vendored
View File

@ -22,5 +22,7 @@ module.exports = {
plugins: ['prettier', 'vue', '@typescript-eslint'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
},
};

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);