Skip to content

chore(style): minor code style adjustments for improved consistency #152

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 5 commits into from
Jul 19, 2024

Conversation

d3lm
Copy link
Contributor

@d3lm d3lm commented Jul 17, 2024

Small PR that updates some minor code styling to streamline consistency with the rest of the repo.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@d3lm d3lm requested review from Nemikolh and AriPerkkio July 17, 2024 15:36
@@ -16,8 +16,10 @@ import Default from '@astrojs/starlight/components/Head.astro';
// @ts-ignore
dataLayer.push(arguments);
}

// @ts-ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Nemikolh Would be cool if we can explain why we do this. Feel free to push to this branch.

// @ts-ignore because ...

Copy link
Member

Choose a reason for hiding this comment

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

Comment added! 🙌

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Love that idea @AriPerkkio 🔥

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is something we should even add to our eslint plugin IMHO.

Copy link
Member

Choose a reason for hiding this comment

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

When exactly do these @ts-ignore here become required? If I remove them from this PR, all tests and builds pass just fine.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link

cloudflare-workers-and-pages bot commented Jul 17, 2024

Deploying tutorialkit-docs-page with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3a400ef
Status: ✅  Deploy successful!
Preview URL: https://66ab711a.tutorialkit-docs-page.pages.dev
Branch Preview URL: https://delm-chore-style-consistency.tutorialkit-docs-page.pages.dev

View logs

Copy link
Member

Choose a reason for hiding this comment

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

Oh this file is completely redone in #143, maybe you want to review that one instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh interesting, yea maybe we don't have to fix it then?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah but the other PR might have issues

Copy link
Member

@AriPerkkio AriPerkkio left a comment

Choose a reason for hiding this comment

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

Looks good to me. Ideally this kind of changes would be automated with linter and formatters. 👍

@d3lm
Copy link
Contributor Author

d3lm commented Jul 18, 2024

Yea, some things are harder to automate but I agree with you. The more we can automate the better!

@AriPerkkio
Copy link
Member

@d3lm as follow-up I can file a PR against our ESLint plugin to add these improvements.

@d3lm
Copy link
Contributor Author

d3lm commented Jul 18, 2024

That would be wonderful Air!

@AriPerkkio
Copy link
Member

AriPerkkio commented Jul 18, 2024

Looks like @ts-ignore related rule is already there. This repo was just missing linting of *.astro files. That's implemented now in #154 that can be merged into this PR's base branch. See https://github.com/stackblitz/tutorialkit/actions/runs/9989368312?pr=154 for errors.

@AriPerkkio AriPerkkio merged commit 2779432 into main Jul 19, 2024
10 checks passed
@AriPerkkio AriPerkkio deleted the delm/chore/style-consistency branch July 19, 2024 10:31
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.

3 participants