chore: tooling #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/take-a-look-01AYMg36C7FjSM6RT2P84Mr6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Note: PWA icon files (icon-192.png, icon-512.png) need to be generated
@Pertempto CI will fail: the workflow uses
npm cibut there is nopackage-lock.jsonin the repo. Either commit the lockfile or change the workflow tonpm install(ornpm cionly on jobs that have a lockfile).@Pertempto In
astro.config.mjsyou're importingtailwindcssfrom@tailwindcss/vite, but I don't see that package inpackage.json. This will break the build. Please either:import tailwind from '@astrojs/tailwind'and addtailwind()tointegrations, orEither way, ensure
package.jsonis updated so CI can install the dependency.@Pertempto
eslint.config.jsexports an array but also spreadsastroPlugin.configs.recommendeddirectly into the top-level array. The Astro plugin provides an object config; mixing it with the array may produce an invalid config shape for ESLint. Consider building a single config object withoverridesfor file types, or ensure the final exported value matches ESLint's expected format (object withoverridesorextends). Also verify all imported plugin objects (likereact.configs.recommended) are valid to spread — some exports may not be plain rule objects.Changes Requested
Please address these blocking issues before merging:
Install dependenciesstep in.github/workflows/ci.ymlto runnpm cionly when a lockfile exists or fall back tonpm install.astro.config.mjs: either switch to@astrojs/tailwind(addtailwind()tointegrations) or install the correct Vite Tailwind plugin matching your import and updatepackage.json.eslint.config.js: do not spread pluginconfigs.*into the top-level array. Export a single flat-config object usingoverridesfor file types and reference plugin rules explicitly.astro.config.mjs(public/icon-192.png,public/icon-512.png) or update the manifest to point to existing assets.Summary of Changes
.github/workflows/ci.yml(lint, type-check, format-check)..prettierignore.eslint.config.js(needs shape fixes).astro.config.mjsand addedpublic/ICONS-TODO.md.package.jsonwith new scripts and devDependencies (some mismatches exist).src/pages/index.astro).Overall Feedback
Negative: There are a few immediate, blocking issues that will cause CI and local builds to fail: the workflow unconditionally uses
npm ciwithout a lockfile,astro.config.mjsimports a Tailwind Vite plugin that is not present inpackage.json, andeslint.config.jsspreads plugin config objects which likely produce an invalid ESLint flat config. These should be fixed before merging.Positive: The PR adds valuable developer tooling (CI, ESLint, Prettier), PWA scaffolding, and a clean landing page—this will improve developer experience once the above issues are resolved. Nice work adding these infra pieces!
If you want, I can open a small follow-up with example diffs for the CI install snippet, a safe
astro.config.mjsTailwind integration using@astrojs/tailwind, and a correctedeslint.config.jsskeleton.@Pertempto
@claude please fix the problems raised in the code review
Deploying with
Cloudflare Workers
The latest updates on your project. Learn more about integrating Git with Workers.
View logs
4b28c690Branch Preview URL
@Pertempto — CI install step will fail when there's no lockfile. Please change the install step to run
npm cionly when a lockfile is present or switch tonpm install. Quick, non-breaking fix you can use in each job:run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
This avoids forcing a lockfile commit and keeps CI deterministic when a lockfile exists.