-
Notifications
You must be signed in to change notification settings - Fork 3
Grahamc/upgrade deps eslint use npm #260
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
Conversation
WalkthroughMigrates the project from pnpm to npm, removes the legacy Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (2)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
package.json (1)
14-52: Move@typescript-eslint/parserto devDependenciesThe
"all"script chainingnpm run format && npm run lint && npm run build && npm run packageis consistent with the CI workflow—no concerns there.
@typescript-eslint/parseris imported only ineslint.config.mjs(line 4) for linting configuration and never appears in the bundled action code (dist/index.js). Since linting happens only during development and the bundled action does not require this parser at runtime, it should be moved todevDependenciesalongside the other ESLint tooling. The package-lock.json marks it with `"peer": true, indicating it is expected to be peer-installed with the ESLint ecosystem in devDependencies.
🧹 Nitpick comments (1)
eslint.config.mjs (1)
29-41: Flat config wiring looks good; consider targeting a newerecmaVersionThe flat config structure (GitHub recommended base + TS‑specific override with
@typescript-eslintparser/plugin andproject: "./tsconfig.json") looks coherent and should work well with ESLint 9.
ecmaVersion: 9is unnecessarily restrictive. Since your tsconfig.json targetsES2020, setecmaVersion: 2020to match the TypeScript target. Alternatively, useecmaVersion: "latest"for forward compatibility. This avoids potential surprises if you use modern JS syntax in.tsfiles.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (3)
dist/index.jsis excluded by!**/dist/**package-lock.jsonis excluded by!**/package-lock.jsonpnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (6)
.eslintrc.json(0 hunks).github/workflows/ci.yaml(1 hunks).prettierignore(0 hunks)eslint.config.mjs(1 hunks)flake.nix(0 hunks)package.json(2 hunks)
💤 Files with no reviewable changes (3)
- flake.nix
- .prettierignore
- .eslintrc.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: DeterminateCI / build (aarch64-darwin, namespace-profile-mac-m2-12c28g)
- GitHub Check: DeterminateCI / build (x86_64-linux, UbuntuLatest32Cores128G)
- GitHub Check: DeterminateCI / build (aarch64-linux, UbuntuLatest32Cores128GArm)
- GitHub Check: Check the dist/ folder is up to date
🔇 Additional comments (1)
.github/workflows/ci.yaml (1)
34-52: npm migration in CI is properly configured; lockfile is committedThe switch from
pnpmtonpm(npm ci,npm run check-fmt|lint|build|package) is correct. All referenced npm scripts exist in package.json,package-lock.jsonis committed to the repository, and the nix environment (flake.nix) properly supports the workflow.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.