Clear lint warnings
- eslint: disable no-console for scripts/** (CLI tools log to stdout) - remove dead code: unused SITE import (PlayStoreButton), GitHubAsset type import, desktopDownloadsApiUrl const - optional catch binding in test-github-releases.js Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Seto committed
Jun 21, 2026 at 18:51 UTC
1a72a82eec1ed160b8574882564224f0e0e90aef
5 files changed
+8
-9
eslint.config.js
+7
@@ -24,6 +24,13 @@ export default [
24
'astro/no-set-html-directive': 'off'
25
}
26
},
27
+ {
28
+ // CLI/build scripts legitimately write to stdout.
29
+ files: ['scripts/**'],
30
+ rules: {
31
+ 'no-console': 'off'
32
+ }
33
+ },
34
prettier,
35
{
36
ignores: [
scripts/test-github-releases.js
+1
-1
@@ -34,7 +34,7 @@ try {
34
}
35
}
36
})
37
-} catch (err) {
37
+} catch {
38
// .env file doesn't exist, that's okay
39
}
40
src/components/ui/PlayStoreButton.astro
-4
@@ -1,7 +1,3 @@
1
----
2
-import { SITE } from '@/config'
3
----
4
-
1
<a
2
href="https://play.google.com/store/apps/dev?id=9116586035310009096"
3
class="play-store-button"
src/pages/api/download-desktop-app.ts
-1
@@ -1,6 +1,5 @@
1
import type { APIRoute } from 'astro'
2
import type {
3
- GitHubAsset,
3
GitHubRelease,
4
DownloadLink,
5
DownloadsResponse,
src/pages/download.astro
-3
@@ -2,9 +2,6 @@
2
import IndexLayout from '@/layouts/IndexLayout.astro'
3
import { SITE } from '@/config'
4
import { Image } from 'astro:assets'
5
-
6
-// Fetch desktop app releases at build time (will be fetched client-side for dynamic updates)
7
-const desktopDownloadsApiUrl = '/api/download-desktop-app'
5
---
6
7
<IndexLayout