From 8260a2078f191305473a5e748e662c23b9cefc62 Mon Sep 17 00:00:00 2001 From: Ollie Taylor <13766232+OllieJT@users.noreply.github.com> Date: Thu, 23 Feb 2023 13:28:04 +0000 Subject: [PATCH] linting --- .eslintrc.cjs | 8 ++++---- playwright.config.ts | 4 ++-- src/lib/components/audio.ts | 2 +- svelte.config.js | 4 ++-- vite.config.ts | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 3ccf435..68be379 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -6,15 +6,15 @@ module.exports = { ignorePatterns: ['*.cjs'], overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], settings: { - 'svelte3/typescript': () => require('typescript') + 'svelte3/typescript': () => require('typescript'), }, parserOptions: { sourceType: 'module', - ecmaVersion: 2020 + ecmaVersion: 2020, }, env: { browser: true, es2017: true, - node: true - } + node: true, + }, }; diff --git a/playwright.config.ts b/playwright.config.ts index 80731be..c757b3f 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -3,9 +3,9 @@ import type { PlaywrightTestConfig } from '@playwright/test'; const config: PlaywrightTestConfig = { webServer: { command: 'npm run build && npm run preview', - port: 4173 + port: 4173, }, - testDir: 'tests' + testDir: 'tests', }; export default config; diff --git a/src/lib/components/audio.ts b/src/lib/components/audio.ts index eac8bf9..a37190a 100644 --- a/src/lib/components/audio.ts +++ b/src/lib/components/audio.ts @@ -3,7 +3,7 @@ export type PlayerElement = HTMLAudioElement | undefined; export function usePlayer( el: PlayerElement, key: K, - value: HTMLAudioElement[K] + value: HTMLAudioElement[K], ) { if (!el) return; el[key] = value; diff --git a/svelte.config.js b/svelte.config.js index 87f198f..c160d6e 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,8 +8,8 @@ const config = { preprocess: vitePreprocess(), kit: { - adapter: adapter() - } + adapter: adapter(), + }, }; export default config; diff --git a/vite.config.ts b/vite.config.ts index bbf8c7d..fce9e87 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,5 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], });