🚨 fixed linter warnings

This commit is contained in:
Mawoka
2023-05-28 13:16:58 +02:00
parent c0bb8ce599
commit ef73234606
9 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
file, You can obtain one at https://mozilla.org/MPL/2.0/. file, You can obtain one at https://mozilla.org/MPL/2.0/.
--> -->
<script lang="ts"> <script lang="ts">
import { alertModal } from '$lib/stores'; // import { alertModal } from '$lib/stores';
import { captcha_enabled } from '$lib/config'; import { captcha_enabled } from '$lib/config';
import StartGameBackground from './start_game_background.svg'; import StartGameBackground from './start_game_background.svg';
import { fade } from 'svelte/transition'; import { fade } from 'svelte/transition';
+1 -1
View File
@@ -4,7 +4,7 @@
- file, You can obtain one at https://mozilla.org/MPL/2.0/. - file, You can obtain one at https://mozilla.org/MPL/2.0/.
--> -->
<script lang="ts"> <script lang="ts">
import { mint } from '$lib/hashcash'; // import { mint } from '$lib/hashcash';
import { dataSchema } from '$lib/yupSchemas'; import { dataSchema } from '$lib/yupSchemas';
import type { EditorData, Question } from './quiz_types'; import type { EditorData, Question } from './quiz_types';
import Sidebar from '$lib/editor/sidebar.svelte'; import Sidebar from '$lib/editor/sidebar.svelte';
+3 -3
View File
@@ -10,16 +10,16 @@
import { reach } from 'yup'; import { reach } from 'yup';
import { dataSchema } from '$lib/yupSchemas'; import { dataSchema } from '$lib/yupSchemas';
import Spinner from '../Spinner.svelte'; import Spinner from '../Spinner.svelte';
import { createTippy } from 'svelte-tippy'; // import { createTippy } from 'svelte-tippy';
import { getLocalization } from '$lib/i18n'; import { getLocalization } from '$lib/i18n';
const { t } = getLocalization(); const { t } = getLocalization();
const tippy = createTippy({ /* const tippy = createTippy({
arrow: true, arrow: true,
animation: 'perspective-subtle', animation: 'perspective-subtle',
placement: 'top' placement: 'top'
}); });*/
export let data: EditorData; export let data: EditorData;
export let selected_question: number; export let selected_question: number;
+1 -1
View File
@@ -8,7 +8,7 @@
import { onDestroy, onMount } from 'svelte'; import { onDestroy, onMount } from 'svelte';
import { browser } from '$app/environment'; import { browser } from '$app/environment';
import * as Sentry from '@sentry/browser'; import * as Sentry from '@sentry/browser';
import { alertModal } from '../stores'; // import { alertModal } from '../stores';
import { getLocalization } from '$lib/i18n'; import { getLocalization } from '$lib/i18n';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import BrownButton from '$lib/components/buttons/brown.svelte'; import BrownButton from '$lib/components/buttons/brown.svelte';
+2 -2
View File
@@ -6,12 +6,12 @@
<script> <script>
import '../app.css'; import '../app.css';
import Navbar from '$lib/navbar.svelte'; import Navbar from '$lib/navbar.svelte';
import { navbarVisible, pathname, alertModal } from '$lib/stores'; import { navbarVisible, pathname } from '$lib/stores';
import * as Sentry from '@sentry/browser'; import * as Sentry from '@sentry/browser';
import { BrowserTracing } from '@sentry/tracing'; import { BrowserTracing } from '@sentry/tracing';
import { initLocalizationContext } from '$lib/i18n'; import { initLocalizationContext } from '$lib/i18n';
import { browser } from '$app/environment'; import { browser } from '$app/environment';
import Alert from '$lib/modals/alert.svelte'; // import Alert from '$lib/modals/alert.svelte';
/* afterNavigate(() => { /* afterNavigate(() => {
if (browser) { if (browser) {
@@ -5,7 +5,6 @@
--> -->
<script lang="ts"> <script lang="ts">
import { getLocalization } from '$lib/i18n'; import { getLocalization } from '$lib/i18n';
import { alertModal } from '../../../lib/stores';
export let session_data; export let session_data;
export let selected_method; export let selected_method;
@@ -5,7 +5,7 @@
--> -->
<script lang="ts"> <script lang="ts">
import { getLocalization } from '$lib/i18n'; import { getLocalization } from '$lib/i18n';
import { alertModal } from '$lib/stores'; // import { alertModal } from '$lib/stores';
export let session_data; export let session_data;
export let selected_method; export let selected_method;
@@ -6,7 +6,7 @@
<script lang="ts"> <script lang="ts">
import { startAuthentication } from '@simplewebauthn/browser'; import { startAuthentication } from '@simplewebauthn/browser';
import { getLocalization } from '$lib/i18n'; import { getLocalization } from '$lib/i18n';
import { alertModal } from '$lib/stores'; // import { alertModal } from '$lib/stores';
const { t } = getLocalization(); const { t } = getLocalization();
export let session_data; export let session_data;
+1 -1
View File
@@ -5,7 +5,7 @@
--> -->
<script lang="ts"> <script lang="ts">
import { getLocalization } from '$lib/i18n'; import { getLocalization } from '$lib/i18n';
import { navbarVisible, alertModal } from '$lib/stores'; import { navbarVisible } from '$lib/stores';
navbarVisible.set(true); navbarVisible.set(true);