zod-prisma-types icon indicating copy to clipboard operation
zod-prisma-types copied to clipboard

Enable type-aware linting and fix a couple issues

Open controversial opened this issue 8 months ago • 0 comments

Stacked on #331; ignore all but the top two commits: d270525 b1f7eb1

Replaced @typescript-eslint/recommended with @typescript-eslint/recommended-type-checked, and fix a few issues that were raised by the additional rules:

  • Some places where a value whose type was like string | { name: string } was passed into a template literal, resulting in possible edge cases where we’d get [object Object] in the template literal instead of the intended name
  • Parse/validate the shape of package.json before reading it for improved type safety

controversial avatar Apr 10 '25 18:04 controversial