Skip to content

Fix: Eslint ignore pattern #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 24, 2025
Merged

Fix: Eslint ignore pattern #295

merged 3 commits into from
Jul 24, 2025

Conversation

luukbrauckmann
Copy link
Member

@luukbrauckmann luukbrauckmann commented Jul 24, 2025

folder pattern

Changes

  • Fixes mistaken ignore pattern
  • Due to the pattern fix eslint found some errors which also gets fixed by this PR

Associated issue

N.A.

How to test

Check first commit. There you'll see changing the pattern causes errors in de workflow.
See the changed files. Check if linter successful.

Checklist

  • I have performed a self-review of my own code
  • I have made sure that my PR is easy to review (not too big, includes comments)
  • I have made updated relevant documentation files (in project README, docs/, etc)
  • I have added a decision log entry if the change affects the architecture or changes a significant technology
  • I have notified a reviewer

@luukbrauckmann luukbrauckmann self-assigned this Jul 24, 2025
@luukbrauckmann luukbrauckmann marked this pull request as ready for review July 24, 2025 11:24
@luukbrauckmann luukbrauckmann marked this pull request as draft July 24, 2025 11:26
The commit fixes several TypeScript-related issues, improves type
safety, and makes type usage more consistent across multiple components.
This includes proper HTMLAttributes usage, explicit HTMLTag typing, and
better Props type definitions.
@luukbrauckmann luukbrauckmann marked this pull request as ready for review July 24, 2025 11:33
Copy link

cloudflare-workers-and-pages bot commented Jul 24, 2025

Deploying head-start with  Cloudflare Pages  Cloudflare Pages

Latest commit: 705e77a
Status: ✅  Deploy successful!
Preview URL: https://fa8dc93a.head-start.pages.dev
Branch Preview URL: https://fix-eslint-ignore-pattern.head-start.pages.dev

View logs

@@ -6,7 +6,7 @@ interface Props {
}
const { node } = Astro.props;

node;
void node;
Copy link
Member Author

@luukbrauckmann luukbrauckmann Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this one was interesting.

The fix I applied changes node; to void node;. The void operator explicitly indicates that you're intentionally discarding the value, which satisfies the @typescript-eslint/no-unused-expressions rule while still preventing the unused variable warning.

So does that mean that we can just leave it out or do we want to keep it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get it tbh, why is the comment talking about Svelte? Got not enough Astro experience for this :)

Copy link
Member Author

@luukbrauckmann luukbrauckmann Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this component could just be a <hr /> tag, but I'll leave it for now.

Copy link
Member

@Siilwyn Siilwyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left two remarks / questions, feel a bit out of my depth here but hope it helps!

@@ -6,7 +6,7 @@ interface Props {
}
const { node } = Astro.props;

node;
void node;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get it tbh, why is the comment talking about Svelte? Got not enough Astro experience for this :)

@luukbrauckmann luukbrauckmann removed the request for review from jurgenbelien July 24, 2025 14:09
@luukbrauckmann luukbrauckmann merged commit 5f196e3 into main Jul 24, 2025
5 checks passed
@luukbrauckmann luukbrauckmann deleted the fix/eslint-ignore-pattern branch July 24, 2025 14:09
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.

2 participants