Skip to content

chore: housekeeping pass (lint, types, dead code)#144

Open
zachdive wants to merge 5 commits into
masterfrom
eve/chore-quick-wins
Open

chore: housekeeping pass (lint, types, dead code)#144
zachdive wants to merge 5 commits into
masterfrom
eve/chore-quick-wins

Conversation

@zachdive
Copy link
Copy Markdown
Contributor

@zachdive zachdive commented May 6, 2026

Summary

A small no-behavior-change cleanup pass. Each commit is independent and self-explanatory; trivial to revert any of them individually.

Changes

  • chore: drop redundant eslint-disable directivessrc/components/Sidebar.tsx and src/views/ResetPasswordView.tsx. The lint config already ignores _-prefixed args, and ES2019 lets us drop the catch binding entirely. The disables were no-ops.
  • chore: remove dead ParametricEditor re-export shimsrc/components/ParametricEditor.tsx was a 4-line re-export of ParametricEditorView that nothing in the repo imports. Its own comment said it existed for backwards compatibility, but this is a private webapp.
  • docs: fix outdated React 18 reference in README — Built With section said React 18; package.json and the README badge both already say React 19.1.
  • chore: rename package from default vite scaffold name to cadampackage.json name was still vite-react-typescript-starter. It surfaces in npm logs / lockfile comments.
  • chore: add format:check script — mirrors the existing format script with --check so CI / pre-merge hooks can verify formatting without writing.

Validation

  • npm run typecheck — clean.
  • npm run lint0 errors, 12 warnings (same baseline as master; remaining warnings are react-refresh/only-export-components on shadcn/ui files and react-hooks/exhaustive-deps ref-cleanup notes that need behavioral judgment to fix — out of scope for this pass).
  • npm run format:check — clean.
  • npm run build — could not verify in this sandbox (4 GB cgroup OOMs vite during transform of the 3,800-module graph, before any of these changes are reached). The tsc -b portion that runs first does pass, and none of the diffs touch import graphs or build config, so build risk is low. Please run locally to confirm.

Out of scope (deliberately untouched)

  • supabase/functions/** — per repo guidance.
  • shadcn/ui react-refresh warnings — would mean splitting upstream-style files.
  • The two react-hooks/exhaustive-deps ref-cleanup warnings in useOpenSCAD.ts / VisualCard.tsx — needs runtime reasoning.
  • No new dependencies, no reformat, no architectural changes.

No user-visible behavior changes.

Test plan

  • npm install
  • npm run typecheck
  • npm run lint
  • npm run build (full vite build — could not run in sandbox; main concern this PR can't self-verify)
  • Smoke test app locally to confirm the package rename / removed shim cause no import resolution surprises

🤖 Generated with Claude Code


Summary by cubic

Housekeeping pass to remove dead code, clean up lint directives, and tighten project metadata. Removed unused ParametricEditor re-export, dropped redundant eslint disables (simplified catch binding), renamed package to cadam, added format:check for prettier, and updated README to React 19. No runtime behavior changes.

Written for commit 353e27a. Summary will update on new commits.

claude added 5 commits May 6, 2026 00:29
The lint config already ignores `_`-prefixed args and ES2019 lets us
omit the catch binding entirely, so two eslint-disable-next-line
comments in Sidebar.tsx and ResetPasswordView.tsx were doing no work.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Nothing imports from src/components/ParametricEditor.tsx — every
caller already imports ParametricEditorView directly from src/views/.
The file's own comment said it existed for backwards compatibility, but
since this is a private webapp there are no external consumers to
preserve.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The Built With section claimed React 18, but package.json and the
README badge both say React 19.1. Bring the prose in line.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The package.json name was still "vite-react-typescript-starter" from
the initial scaffold. It surfaces in npm logs and lockfiles, so set it
to the actual project name.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Mirrors the existing `format` script with `--check` so CI / pre-merge
hooks can verify formatting without writing to the working tree.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cadam Ready Ready Preview, Comment May 6, 2026 0:38am

Request Review

@supabase
Copy link
Copy Markdown

supabase Bot commented May 6, 2026

This pull request has been ignored for the connected project sgprnbvihmydyrzvkcir because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@zachdive zachdive marked this pull request as ready for review May 7, 2026 23:42
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 5 files

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 7, 2026

Greptile Summary

A pure housekeeping pass: removes a dead re-export shim, drops now-redundant eslint-disable directives, renames the package, adds a format:check script, and corrects the README React version. Grep confirms no remaining imports of the deleted ParametricEditor shim, all lint and type changes are syntactically valid, and no runtime paths are touched.

  • ParametricEditor.tsx deleted — confirmed zero importers in the repo; EditorView already imports ParametricEditorView directly.
  • Sidebar.tsx / ResetPasswordView.tsx — eslint suppression comments removed; catch (error)catch {} (ES2019) and two unused destructured params collapsed into _props: SidebarProps.
  • package.json — package renamed to cadam; format:check added as a prettier --check . counterpart to the existing format script.

Confidence Score: 4/5

Safe to merge — all changes are metadata, dead code removal, and lint cleanup with no runtime paths touched.

Every diff is either a deletion with confirmed zero importers, a comment/directive removal, or a package.json/README metadata update. The only open question is that the new format:check script has no enforcement path yet — it won't catch drift unless explicitly called or wired into the pre-commit hook or a CI step.

No files require special attention; package.json is the only file where the noted gap lives.

Important Files Changed

Filename Overview
src/components/ParametricEditor.tsx File deleted — confirmed no remaining imports in the codebase; all callers already use ParametricEditorView directly.
src/components/Sidebar.tsx Removed per-prop eslint-disable comments on MobileSidebar; consolidated two unused destructured params into _props: SidebarProps — no behavior change.
src/views/ResetPasswordView.tsx Dropped catch binding (catch {} — ES2019 syntax) and removed the now-unnecessary eslint-disable directive; logic unchanged.
package.json Renamed package from vite-react-typescript-starter to cadam; added format:check script that mirrors format with --check flag.
README.md Updated Built With section from React 18 to React 19 to match the actual package.json dependency (19.1.0).

Reviews (1): Last reviewed commit: "chore: add format:check script" | Re-trigger Greptile

Comment thread package.json
"typecheck": "tsc -b --noEmit",
"lint:supabase": "deno lint supabase",
"format": "prettier --write .",
"format:check": "prettier --check .",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 format:check is defined but not enforced anywhere

The script exists, but the pre-commit hook (.husky/pre-commit) only runs tsc -b and lint-staged, and there are no CI workflow files in the repo. lint-staged already runs prettier --write on staged files, which auto-fixes rather than gates. format:check will only catch formatting drift if someone manually calls it — it won't block a mis-formatted commit or a merge. Worth wiring it into the pre-commit hook or a CI step to close that gap.

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