Skip to content

fix: resolve all 38 pre-existing ESLint errors - #1009

Merged
willtheorangeguy merged 1 commit into
mainfrom
fix/eslint-errors-cleanup
Aug 29, 2026
Merged

willtheorangeguy merged 1 commit into
mainfrom
fix/eslint-errors-cleanup

Conversation

@willtheorangeguy

Copy link
Copy Markdown
Owner
  • astro.config.ts: drop the unnecessary as any cast on the
    tailwindcss() vite plugin; astro check passes without it.
  • eslint.config.js: add a scoped override for public/speedtest/**
    (vendored LibreSpeed code, GNU LGPLv3) that turns off no-console
    (intentional logging) and no-unused-expressions (an IE11
    feature-detection idiom), and configures no-unused-vars with
    caughtErrors: "none" for its many deliberately-ignored
    catch (e) {} blocks, instead of rewriting upstream code.
  • Remove genuinely unused imports: IconArchive (Header.astro),
    IconBluesky and SITE (constants.ts), ShareLinks (PostDetails.astro),
    IconRss (index.astro) -- verified via grep that none are used.
  • PostDetails.astro: wire the already-destructured hideEditPost
    frontmatter field through to , which accepts it as a
    prop to hide the edit link per post. It was previously computed
    but silently dropped, so the documented hideEditPost frontmatter
    option (see EditPost.stories.ts) never had any effect.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01Y38yxr1x54TZQgwdcHUbtE

- astro.config.ts: drop the unnecessary `as any` cast on the
  tailwindcss() vite plugin; astro check passes without it.
- eslint.config.js: add a scoped override for public/speedtest/**
  (vendored LibreSpeed code, GNU LGPLv3) that turns off no-console
  (intentional logging) and no-unused-expressions (an IE11
  feature-detection idiom), and configures no-unused-vars with
  caughtErrors: "none" for its many deliberately-ignored
  `catch (e) {}` blocks, instead of rewriting upstream code.
- Remove genuinely unused imports: IconArchive (Header.astro),
  IconBluesky and SITE (constants.ts), ShareLinks (PostDetails.astro),
  IconRss (index.astro) -- verified via grep that none are used.
- PostDetails.astro: wire the already-destructured `hideEditPost`
  frontmatter field through to <EditPost>, which accepts it as a
  prop to hide the edit link per post. It was previously computed
  but silently dropped, so the documented hideEditPost frontmatter
  option (see EditPost.stories.ts) never had any effect.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y38yxr1x54TZQgwdcHUbtE
@willtheorangeguy
willtheorangeguy merged commit 523dcc9 into main Aug 29, 2026
5 of 7 checks passed
@willtheorangeguy
willtheorangeguy deleted the fix/eslint-errors-cleanup branch August 29, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant