Skip to content

Add CI workflow config and fix lint issues - #60

Merged
Krakabek merged 1 commit into
mainfrom
dr-setup-ci
Aug 3, 2026
Merged

Add CI workflow config and fix lint issues#60
Krakabek merged 1 commit into
mainfrom
dr-setup-ci

Conversation

@Krakabek

@Krakabek Krakabek commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Add .github/workflows/ci.yaml matching the bare template (with node-version 22.20.0, since this template uses vite 8 / rolldown which require node >=22.12.0).

package.json: add test:types and test:unit scripts, remove the duplicate type-check script (point deploy at test:types), bump engines.node to >=22.12.0, and downgrade typescript 7.0.2 -> 6.0.3 so it satisfies the typescript-eslint peer range.

src/client/main.ts: fix pre-existing lint errors so the lint step passes: mark the floating loadGame() promise with void, remove the dead aspect-ratio computation (whose result was already unused) and the now-unused startingAspect field, and grandfather existing no-explicit-any usages with eslint-disable-next-line so the rule keeps blocking new any usage.

💸 TL;DR

📜 Details

Design Doc

Jira

🧪 Testing Steps / Validation

✅ Checks

  • CI tests (if present) are passing
  • Adheres to code style for repo
  • Contributor License Agreement (CLA) completed if not a Reddit employee

Add .github/workflows/ci.yaml matching the bare template (with
node-version 22.20.0, since this template uses vite 8 / rolldown which
require node >=22.12.0).

package.json: add test:types and test:unit scripts, remove the
duplicate type-check script (point deploy at test:types), bump
engines.node to >=22.12.0, and downgrade typescript 7.0.2 -> 6.0.3 so
it satisfies the typescript-eslint peer range.

src/client/main.ts: fix pre-existing lint errors so the lint step
passes: mark the floating loadGame() promise with void, comment out the
dead aspect-ratio computation (kept as a reference snippet) along with
the startingAspect field/assignment, and grandfather existing
no-explicit-any usages with eslint-disable-next-line so the rule keeps
blocking new any usage.

Built with Snoocode
Comment thread src/client/main.ts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this patterns seems questionable but i recognize fixing it is out of scope for this PR.

Comment thread src/client/main.ts

this.canvasElement.style.height = '100%'; //`${newHeight}px`;
this.canvasElement.style.width = '100%'; //`${newWidth}px`;
// Example: compute dimensions that preserve the game's starting aspect

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we need this for GameMaker to function properly?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, this code was doing nothing, and the linter was mad about it.
I kept it as an example with the assumption that we needed this code for something, maybe for LLMs or users to get a basic understanding of how they can interact with the canvas
Will double-check in slack

Comment thread package.json
},
"engines": {
"node": ">=22.2.0"
"node": ">=22.12.0"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i didn't follow why the version of Node is incremented but differs in some of the templates. can we unify these?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A bump was needed to satisfy vite requirements. Bare doesn't use vite so it stayed untouched
I'll bump the versions everywhere in a separate series of PR, and then we'll bump it to 24 sometime soon

@Krakabek
Krakabek merged commit b0967f9 into main Aug 3, 2026
1 check passed
@Krakabek
Krakabek deleted the dr-setup-ci branch August 3, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants