From ba9966edd27d125e9db36bdf124c629cbe174530 Mon Sep 17 00:00:00 2001 From: Kawsar Ahmed Date: Sun, 28 Jul 2024 08:51:44 +0600 Subject: [PATCH] Format --- README.md | 2 +- postcss.config.js | 8 ++++---- src/app.d.ts | 2 +- src/index.test.ts | 8 ++++---- src/lib/utils/tooltip.ts | 8 ++++---- svelte.config.js | 8 ++++---- tests/test.ts | 8 ++++---- vite.config.ts | 2 +- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index ffe90e2..94f14c6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Determine Paper Cost - ## Tech Stack ```bash @@ -13,6 +12,7 @@ Tools ```bash + ``` ## After Cloning this project diff --git a/postcss.config.js b/postcss.config.js index 2e7af2b..35237eb 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,6 @@ export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, + plugins: { + tailwindcss: {}, + autoprefixer: {} + } } diff --git a/src/app.d.ts b/src/app.d.ts index f59b884..bf6daa3 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -9,4 +9,4 @@ declare global { } } -export {}; +export {} diff --git a/src/index.test.ts b/src/index.test.ts index e07cbbd..c9ccff9 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -1,7 +1,7 @@ -import { describe, it, expect } from 'vitest'; +import { describe, it, expect } from 'vitest' describe('sum test', () => { it('adds 1 + 2 to equal 3', () => { - expect(1 + 2).toBe(3); - }); -}); + expect(1 + 2).toBe(3) + }) +}) diff --git a/src/lib/utils/tooltip.ts b/src/lib/utils/tooltip.ts index 0e616c2..348dc33 100644 --- a/src/lib/utils/tooltip.ts +++ b/src/lib/utils/tooltip.ts @@ -1,6 +1,6 @@ -import tippy from 'tippy.js'; -import 'tippy.js/dist/tippy.css'; -import 'tippy.js/animations/scale.css'; +import tippy from 'tippy.js' +import 'tippy.js/dist/tippy.css' +import 'tippy.js/animations/scale.css' tippy('[data-tippy]', { content: (reference) => reference.getAttribute('data-tippy') || '', @@ -9,4 +9,4 @@ tippy('[data-tippy]', { arrow: true, delay: 100, animation: 'scale' -}); +}) diff --git a/svelte.config.js b/svelte.config.js index e1bedc4..4e819a4 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,6 +1,6 @@ // import adapter from '@sveltejs/adapter-auto'; -import adapter from '@sveltejs/adapter-vercel'; -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; +import adapter from '@sveltejs/adapter-vercel' +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -14,6 +14,6 @@ const config = { // See https://kit.svelte.dev/docs/adapters for more information about adapters. adapter: adapter() } -}; +} -export default config; +export default config diff --git a/tests/test.ts b/tests/test.ts index 5816be4..ceb92e1 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -1,6 +1,6 @@ -import { expect, test } from '@playwright/test'; +import { expect, test } from '@playwright/test' test('index page has expected h1', async ({ page }) => { - await page.goto('/'); - await expect(page.getByRole('heading', { name: 'Welcome to SvelteKit' })).toBeVisible(); -}); + await page.goto('/') + await expect(page.getByRole('heading', { name: 'Welcome to SvelteKit' })).toBeVisible() +}) diff --git a/vite.config.ts b/vite.config.ts index 7d45742..c3a93ca 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,6 +7,6 @@ export default defineConfig({ include: ['src/**/*.{test,spec}.{js,ts}'] }, server: { - port: 5000 + port: 2000 } })