When working with Vue libraries, such as Swiper, that require the use of 'new …' in the script section, I encounter ESlint errors no matter how I try to write it. Even though 'new ...' works perfectly fine in the frontend, ESlint continues to complain:
const swiper = new Swiper > 'swiper' is assigned a value but never used ...
new Swiper > Do not use 'new' for side effects
Without new > Class constructor Swiper cannot be invoked without 'new' and ceases to work in the frontend anymore
Therefore, what is considered the "correct" way to handle this situation?