From 58717c0e7ff22b245df9b4b10b303cc63fb48641 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 4 Jan 2023 17:31:19 +0100 Subject: [PATCH] Fix ESLint nits --- app/javascript/retrospring/initializers/bootstrap.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/javascript/retrospring/initializers/bootstrap.ts b/app/javascript/retrospring/initializers/bootstrap.ts index 14c0a705..4a760128 100644 --- a/app/javascript/retrospring/initializers/bootstrap.ts +++ b/app/javascript/retrospring/initializers/bootstrap.ts @@ -1,4 +1,3 @@ -import * as Popper from '@popperjs/core'; import * as bootstrap from 'bootstrap'; /** @@ -10,9 +9,9 @@ import * as bootstrap from 'bootstrap'; export default function (): void { document.addEventListener('turbo:load', () => { const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]'); - const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)); + [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)); const dropdownElementList = document.querySelectorAll('.dropdown-toggle'); - const dropdownList = [...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl)); + [...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl)); }); }