diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e7d7e4ac..60004132 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,7 +4,6 @@ about: Create a report to help us improve title: '' labels: bug assignees: '' - --- **Describe the bug** @@ -12,6 +11,7 @@ A clear and concise description of what the bug is. **To Reproduce** (if applicable) Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -24,6 +24,7 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Versions** + - Browser: Firefox - Photon version: 0.5.1 - check in the bottom of the main menu. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7d..2f28cead 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,7 +4,6 @@ about: Suggest an idea for this project title: '' labels: '' assignees: '' - --- **Is your feature request related to a problem? Please describe.** diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..f83848a8 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,10 @@ +{ + "arrowParens": "always", + "tabWidth": 2, + "semi": false, + "singleQuote": true, + "htmlWhitespaceSensitivity": "ignore", + + "plugins": ["prettier-plugin-svelte"], + "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index cbe8ae72..0645a6c7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { "i18n-ally.localesPaths": ["src/lib/i18n"], - "i18n-ally.keystyle": "nested" + "i18n-ally.keystyle": "nested", + "prettier.prettierPath": "prettier" } diff --git a/package.json b/package.json index e341dccc..a2c502f7 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "@sveltejs/adapter-auto": "^3.2.1", "@sveltejs/adapter-node": "^2.0.0", "@sveltejs/adapter-vercel": "^5.1.0", - "@sveltejs/kit": "^2.5.20", - "@sveltejs/vite-plugin-svelte": "^3.0.0", + "@sveltejs/kit": "^2.5.27", + "@sveltejs/vite-plugin-svelte": "^4.0.0", "@tailwindcss/container-queries": "^0.1.1", "@tanstack/svelte-virtual": "^3.8.1", "@types/nprogress": "^0.2.0", @@ -22,9 +22,11 @@ "marked-linkify-it": "^3.1.10", "nprogress": "^0.2.0", "postcss": "^8.4.30", + "prettier": "^3.3.3", + "prettier-plugin-svelte": "^3.2.7", "rollup-plugin-visualizer": "^5.9.2", - "svelte": "^4.2.18", - "svelte-check": "^3.0.1", + "svelte": "^5.0.0", + "svelte-check": "^4.0.0", "svelte-floating-ui": "^1.5.9", "svelte-focus-trap": "^1.2.0", "svelte-hero-icons": "^5.2.0", @@ -33,9 +35,9 @@ "sveltekit-i18n": "^2.4.2", "tailwindcss": "^3.3.3", "tslib": "^2.4.1", - "typescript": "^5.0.0", + "typescript": "^5.5.0", "ua-parser-js": "^1.0.38", - "vite": "^5.0.0", + "vite": "^5.4.4", "vitest": "^1.0.0" }, "private": true, @@ -47,7 +49,9 @@ "start": "node build/index.js", "bunstart": "bun build/index.js", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "format": "prettier --write .", + "format:specific": "prettier --write" }, "type": "module", "dependencies": { diff --git a/src/app.html b/src/app.html index f5ebd676..aa982970 100644 --- a/src/app.html +++ b/src/app.html @@ -1,4 +1,4 @@ - +
diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 454e33ec..7f26bf6b 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -94,7 +94,7 @@ export let profileData = writable