diff --git a/.eslintrc.js b/.eslintrc.js index 0538f34..315b9d6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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: '^_' }], }, }; diff --git a/resources/assets/js/app.ts b/resources/assets/js/app.ts index 0a80a02..7267f57 100644 --- a/resources/assets/js/app.ts +++ b/resources/assets/js/app.ts @@ -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(); diff --git a/resources/assets/js/checkin.ts b/resources/assets/js/checkin.ts index 60e87fb..7902965 100644 --- a/resources/assets/js/checkin.ts +++ b/resources/assets/js/checkin.ts @@ -59,7 +59,7 @@ new Vue({ this.metadata = data; this.metadataLoadState = MetadataLoadState.Success; }) - .catch((e) => { + .catch((_e) => { this.metadata = null; this.metadataLoadState = MetadataLoadState.Failed; }); diff --git a/resources/assets/js/tissue.ts b/resources/assets/js/tissue.ts index 39413ae..6a3ab92 100644 --- a/resources/assets/js/tissue.ts +++ b/resources/assets/js/tissue.ts @@ -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);