allowed underscore prefixed unused var
This commit is contained in:
parent
b909035fe8
commit
2693d340c6
2
.eslintrc.js
vendored
2
.eslintrc.js
vendored
@ -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: '^_' }],
|
||||
},
|
||||
};
|
||||
|
@ -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();
|
||||
|
@ -59,7 +59,7 @@ new Vue({
|
||||
this.metadata = data;
|
||||
this.metadataLoadState = MetadataLoadState.Success;
|
||||
})
|
||||
.catch((e) => {
|
||||
.catch((_e) => {
|
||||
this.metadata = null;
|
||||
this.metadataLoadState = MetadataLoadState.Failed;
|
||||
});
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user