This commit is contained in:
Ollie Taylor
2023-02-23 13:28:04 +00:00
parent 1336175d8a
commit 8260a2078f
5 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -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,
},
};
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -3,7 +3,7 @@ export type PlayerElement = HTMLAudioElement | undefined;
export function usePlayer<K extends keyof HTMLAudioElement>(
el: PlayerElement,
key: K,
value: HTMLAudioElement[K]
value: HTMLAudioElement[K],
) {
if (!el) return;
el[key] = value;
+2 -2
View File
@@ -8,8 +8,8 @@ const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter()
}
adapter: adapter(),
},
};
export default config;
+1 -1
View File
@@ -2,5 +2,5 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()]
plugins: [sveltekit()],
});