diff --git a/.eslintrc.js b/.eslintrc.js index 28a366ac..8f82fc73 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,6 +18,12 @@ module.exports = { '@typescript-eslint' ], overrides: [ + { + files: ['*.js', 'utils/*.js'], + rules: { + '@typescript-eslint/no-var-requires': 'off', + } + }, { files: ['*.svelte'], processor: 'svelte3/svelte3', @@ -29,8 +35,9 @@ module.exports = { ], // Causes false positives with reactive and auto subscriptions '@typescript-eslint/strict-boolean-expressions': 'off', + '@typescript-eslint/no-unsafe-argument': 'off', 'no-sequences': 'off', - 'svelte/missing-declaration': "off", + 'svelte/missing-declaration': 'off', } } ], diff --git a/src/components/HyperchatButton.svelte b/src/components/HyperchatButton.svelte index c2e0e675..f1b510b3 100644 --- a/src/components/HyperchatButton.svelte +++ b/src/components/HyperchatButton.svelte @@ -73,14 +73,6 @@ cursor: pointer; transition: box-shadow 0.2s; } - .toggleButton .floating-icon { - position: absolute; - bottom: 5px; - right: 3px; - width: 15px; - height: 15px; - } - .toggleButton.disabled { color: var(--yt-live-chat-secondary-text-color); } diff --git a/src/components/Message.svelte b/src/components/Message.svelte index 8204b9d8..206145a9 100644 --- a/src/components/Message.svelte +++ b/src/components/Message.svelte @@ -80,7 +80,7 @@ icon: d.icon, text: d.text, value: d.value.toString(), - onClick: () => useBanHammer(message, d.value, $port) + onClick: () => { useBanHammer(message, d.value, $port); } })); const openReplyTargetSuperchat = () => { diff --git a/src/components/SettingsButton.svelte b/src/components/SettingsButton.svelte index 610d2162..cc0d035e 100644 --- a/src/components/SettingsButton.svelte +++ b/src/components/SettingsButton.svelte @@ -2,7 +2,7 @@ import { createPopup } from '../ts/chat-utils'; import { isLiveTL } from '../ts/chat-constants'; import outline from '../assets/outline.svg?raw'; - import { onDestroy, onMount } from "svelte"; + import { onDestroy, onMount } from 'svelte'; const openSettings = () => { createPopup(chrome.runtime.getURL(`${isLiveTL ? 'hyperchat/' : ''}options.html${document.documentElement.getAttribute('dark') === '' ? '?dark' : ''}`)); @@ -65,4 +65,4 @@ justify-content: center; fill: var(--yt-spec-text-primary); } - \ No newline at end of file +